-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
2,053 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Demo Runner | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
tags: | ||
- v** | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
runner: [macos-latest, windows-latest] | ||
include: | ||
- generator: Xcode | ||
runner: macos-latest | ||
name: macOS | ||
- generator: Visual Studio 17 | ||
runner: windows-latest | ||
name: Windows | ||
|
||
name: Build Demo ${{matrix.name}} | ||
runs-on: ${{matrix.runner}} | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: "recursive" | ||
|
||
- name: CMake Configure | ||
run: cmake -Bbuild -G "${{matrix.generator}}" -DJIVE_BUILD_DEMO_RUNNER=ON | ||
|
||
- name: CMake Build | ||
run: cmake --build build --config "${{env.BUILD_TYPE}}" | ||
|
||
- name: Stage artifacts | ||
run: | | ||
mkdir ./artifacts | ||
if [[ $(uname) == "Darwin" ]]; then | ||
for app in "$(find ./build/runners/demo-runner -name '*.app')"; do | ||
mv "${app}" ./artifacts; | ||
done | ||
mv ./build/version.txt ./artifacts | ||
elif [[ $(uname) == *"MINGW"* ]]; then | ||
for exe in "$(find -wholename './build/runners/demo-runner/*.exe')"; do | ||
cp -r "${exe}" ./artifacts; | ||
done | ||
fi | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: artifacts | ||
path: ./artifacts | ||
|
||
release: | ||
if: contains(github.ref, 'tags/v') | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
path: . | ||
|
||
- name: Set VERSION variable | ||
run: | | ||
VERSION_TXT=$(cat ./artifacts/version.txt) | ||
echo "VERSION=$VERSION_TXT" >> $GITHUB_ENV | ||
rm ./artifacts/version.txt | ||
- name: Make zip | ||
run: | | ||
name="JIVE ${{env.VERSION}}" | ||
mv ./artifacts/ "./$name/" | ||
zip -r "$(name).zip" "./$name/" | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: "JIVE ${{env.VERSION}}" | ||
files: ./*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,75 @@ | ||
name: Test Runner | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [main] | ||
|
||
env: | ||
BUILD_TYPE: Debug | ||
BUILD_TYPE: Debug | ||
|
||
jobs: | ||
test-windows: | ||
name: Test Windows | ||
runs-on: windows-latest | ||
test-windows: | ||
name: Test Windows | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: "recursive" | ||
|
||
- name: Configure CMake | ||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DJIVE_BUILD_TEST_RUNNER=ON | ||
- name: Configure CMake | ||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DJIVE_BUILD_TEST_RUNNER=ON | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | ||
|
||
- name: Test | ||
working-directory: ${{github.workspace}}/build | ||
run: ${{github.workspace}}/build/runners/test-runner/jive-test-runner_artefacts/${{env.BUILD_TYPE}}/jive-test-runner | ||
- name: Test | ||
working-directory: ${{github.workspace}}/build | ||
run: ${{github.workspace}}/build/runners/test-runner/jive-test-runner_artefacts/${{env.BUILD_TYPE}}/jive-test-runner | ||
|
||
test-macos: | ||
name: Test macOS | ||
runs-on: macos-latest | ||
test-macos: | ||
name: Test macOS | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: "recursive" | ||
|
||
- name: Configure CMake | ||
run: cmake -B ${{github.workspace}}/build -G Xcode -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DJIVE_BUILD_TEST_RUNNER=ON -DJIVE_ENABLE_COVERAGE=ON | ||
- name: Configure CMake | ||
run: cmake -B ${{github.workspace}}/build -G Xcode -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DJIVE_BUILD_TEST_RUNNER=ON -DJIVE_ENABLE_COVERAGE=ON | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | ||
|
||
- name: Test | ||
working-directory: ${{github.workspace}}/build | ||
run: ${{github.workspace}}/build/runners/test-runner/jive-test-runner_artefacts/${{env.BUILD_TYPE}}/jive-test-runner | ||
- name: Test | ||
working-directory: ${{github.workspace}}/build | ||
run: ${{github.workspace}}/build/runners/test-runner/jive-test-runner_artefacts/${{env.BUILD_TYPE}}/jive-test-runner | ||
|
||
- name: Install lcov | ||
working-directory: ${{github.workspace}}/build | ||
run: brew install lcov | ||
- name: Install lcov | ||
working-directory: ${{github.workspace}}/build | ||
run: brew install lcov | ||
|
||
- name: Generate Coverage Report | ||
working-directory: ${{github.workspace}}/build | ||
run: lcov --directory . --capture --output-file coverage.info --ignore-errors inconsistent --ignore-errors gcov | ||
- name: Generate Coverage Report | ||
working-directory: ${{github.workspace}}/build | ||
run: lcov --directory . --capture --output-file coverage.info --ignore-errors inconsistent --ignore-errors gcov | ||
|
||
- name: Upload Coverage | ||
working-directory: ${{github.workspace}}/build | ||
run: | | ||
curl -Os https://uploader.codecov.io/latest/macos/codecov | ||
chmod +x codecov | ||
./codecov -t ${{ secrets.CODECOV_TOKEN }} | ||
- name: Upload Coverage | ||
working-directory: ${{github.workspace}}/build | ||
run: | | ||
curl -Os https://uploader.codecov.io/latest/macos/codecov | ||
chmod +x codecov | ||
./codecov -t ${{ secrets.CODECOV_TOKEN }} | ||
verify-formatting: | ||
name: Verify Formatting | ||
runs-on: macos-latest | ||
verify-formatting: | ||
name: Verify Formatting | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install clang-format | ||
run: brew install clang-format | ||
- name: Install clang-format | ||
run: brew install clang-format | ||
|
||
- name: Verify formatting | ||
run: python3 ${{github.workspace}}/.github/scripts/verify_formatting.py | ||
- name: Verify formatting | ||
run: python3 ${{github.workspace}}/.github/scripts/verify_formatting.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
if (JIVE_BUILD_TEST_RUNNER) | ||
add_subdirectory(test-runner) | ||
endif() | ||
|
||
if (JIVE_BUILD_DEMO_RUNNER) | ||
add_subdirectory(demo-runner) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
juce_add_gui_app(jive-demo-runner | ||
PRODUCT_NAME "JIVE Demo Runner" | ||
) | ||
|
||
target_sources(jive-demo-runner | ||
PRIVATE | ||
source/main.cpp | ||
) | ||
|
||
juce_add_binary_data(jive-demo-runner-resources | ||
HEADER_NAME "binary_data.h" | ||
NAMESPACE "binary_data" | ||
|
||
SOURCES | ||
resources/icons/back-small.svg | ||
resources/icons/build-large.svg | ||
resources/icons/build-small.svg | ||
resources/icons/code-large.svg | ||
resources/icons/code-small.svg | ||
resources/icons/layout-large.svg | ||
resources/icons/layout-small.svg | ||
resources/icons/next-small.svg | ||
resources/icons/palette-large.svg | ||
resources/icons/palette-small.svg | ||
resources/rubik-mono-one.ttf | ||
resources/rubik.ttf | ||
resources/source-code-pro.ttf | ||
) | ||
|
||
target_compile_definitions(jive-demo-runner | ||
PRIVATE | ||
JIVE_DEMO_APPLICATION_NAME="$<TARGET_PROPERTY:jive-demo-runner,JUCE_PRODUCT_NAME>" | ||
JIVE_DEMO_APPLICATION_VERSION="$<TARGET_PROPERTY:jive-demo-runner,JUCE_VERSION>" | ||
JIVE_GUI_ITEMS_HAVE_STYLE_SHEETS=1 | ||
) | ||
|
||
target_link_libraries(jive-demo-runner | ||
PRIVATE | ||
jive-demo-runner-resources | ||
jive::jive_layouts | ||
jive::jive_style_sheets | ||
juce::juce_recommended_config_flags | ||
juce::juce_recommended_lto_flags | ||
juce::juce_recommended_warning_flags | ||
) | ||
|
||
target_include_directories(jive-demo-runner | ||
PRIVATE | ||
source | ||
) | ||
|
||
target_compile_features(jive-demo-runner | ||
PRIVATE | ||
cxx_std_17 | ||
) | ||
|
||
if (APPLE) | ||
target_compile_options(jive-demo-runner | ||
PRIVATE | ||
-fsanitize=address | ||
-fsanitize=undefined | ||
-Werror | ||
) | ||
|
||
target_link_options(jive-demo-runner | ||
PRIVATE | ||
-fsanitize=address | ||
-fsanitize=undefined | ||
) | ||
endif() | ||
|
||
if (MSVC) | ||
target_compile_options(jive-demo-runner | ||
PRIVATE | ||
/WX | ||
) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Third-party Resources | ||
|
||
## Fonts | ||
|
||
All fonts used in the demo are available from [Google Fonts](https://fonts.google.com) and licensed under the [Open Font License](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL). | ||
|
||
## Icons | ||
|
||
All icons used in the demo are available from [Material Symbols and Icons - Google Fonts](https://fonts.google.com/icons) and licensed under the [Apache License Version 2.0](https://github.com/google/material-design-icons#license). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.