Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 23 additions & 26 deletions .github/workflows/build_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,33 +34,30 @@ env:
jobs:
configure:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: ${{env.JAVA_DISTRIBUTION}}
java-version: ${{env.JAVA_VERSION}}
- name: Setup Android SDK
uses: android-actions/setup-android@v2.0.10
- name: Setup Android NDK
uses: nttld/setup-ndk@v1
with:
ndk-version: ${{env.NDK_VERSION}}

- name: Configure
run: cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_TARGET_ANDROID=ON -DYUP_ENABLE_TESTS=ON -DYUP_ENABLE_EXAMPLES=ON

- name: Cache Configure
id: cache-build
uses: actions/cache/save@v4
with:
path: ${{ runner.workspace }}/build
key: android-build-${{ github.sha }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: ${{env.JAVA_DISTRIBUTION}}
java-version: ${{env.JAVA_VERSION}}
- name: Setup Android SDK
uses: android-actions/setup-android@v2.0.10
- name: Setup Android NDK
uses: nttld/setup-ndk@v1
with:
ndk-version: ${{env.NDK_VERSION}}
- name: Configure
run: cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_TARGET_ANDROID=ON -DYUP_ENABLE_TESTS=ON -DYUP_ENABLE_EXAMPLES=ON
- name: Cache Configure
id: cache-build
uses: actions/cache/save@v4
with:
path: ${{ runner.workspace }}/build
key: android-build-${{ github.sha }}

build_app:
runs-on: ubuntu-latest
Expand Down
21 changes: 8 additions & 13 deletions .github/workflows/build_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,19 @@ env:
jobs:
configure:
runs-on: macos-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: seanmiddleditch/gha-setup-ninja@master

- name: Configure
run: |
cmake ${{ github.workspace }} -G "Ninja Multi-Config" -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/ios.cmake \
-DPLATFORM=${{ env.IOS_PLATFORM }} -B ${{ runner.workspace }}/build -DYUP_ENABLE_TESTS=ON -DYUP_ENABLE_EXAMPLES=ON

- name: Build SDL2
run: |
cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target SDL2-static
cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target SDL2-static

cmake --build ${{ runner.workspace }}/build --config Debug --target SDL2-static
cmake --build ${{ runner.workspace }}/build --config Release --target SDL2-static
- name: Cache Configure
id: cache-build
uses: actions/cache/save@v4
Expand All @@ -73,8 +68,8 @@ jobs:
run: |
cmake ${{ github.workspace }} -G "Ninja Multi-Config" -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/ios.cmake \
-DPLATFORM=${{ env.IOS_PLATFORM }} -B ${{ runner.workspace }}/build -DYUP_ENABLE_EXAMPLES=ON
- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target example_console
- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target example_console
- run: cmake --build ${{ runner.workspace }}/build --config Debug --target example_console
- run: cmake --build ${{ runner.workspace }}/build --config Release --target example_console

build_app:
runs-on: macos-latest
Expand All @@ -94,8 +89,8 @@ jobs:
run: |
cmake ${{ github.workspace }} -G "Ninja Multi-Config" -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/ios.cmake \
-DPLATFORM=${{ env.IOS_PLATFORM }} -B ${{ runner.workspace }}/build -DYUP_ENABLE_EXAMPLES=ON
- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target example_app
- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target example_app
- run: cmake --build ${{ runner.workspace }}/build --config Debug --target example_app
- run: cmake --build ${{ runner.workspace }}/build --config Release --target example_app

build_graphics:
runs-on: macos-latest
Expand All @@ -115,5 +110,5 @@ jobs:
run: |
cmake ${{ github.workspace }} -G "Ninja Multi-Config" -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/ios.cmake \
-DPLATFORM=${{ env.IOS_PLATFORM }} -B ${{ runner.workspace }}/build -DYUP_ENABLE_EXAMPLES=ON
- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target example_graphics
- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target example_graphics
- run: cmake --build ${{ runner.workspace }}/build --config Debug --target example_graphics
- run: cmake --build ${{ runner.workspace }}/build --config Release --target example_graphics
56 changes: 35 additions & 21 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,31 +36,27 @@ env:
jobs:
configure:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install -y ${INSTALL_DEPS}

- name: Configure
run: cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_TESTS=ON -DYUP_ENABLE_EXAMPLES=ON

- name: Build SDL2
run: |
cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target SDL2-static
cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target SDL2-static

cmake --build ${{ runner.workspace }}/build --config Debug --target SDL2-static
cmake --build ${{ runner.workspace }}/build --config Release --target SDL2-static
- name: Cache Configure
id: cache-build
uses: actions/cache/save@v4
with:
path: ${{ runner.workspace }}/build
key: linux-build-${{ github.sha }}

build_tests:
build_tests_debug:
runs-on: ubuntu-latest
needs: [configure]
steps:
Expand All @@ -77,10 +73,28 @@ jobs:
- name: Configure If Cache Missed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_TESTS=ON
- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target yup_tests
- run: cmake --build ${{ runner.workspace }}/build --config Debug --target yup_tests
- working-directory: ${{ runner.workspace }}/build/tests/Debug
run: ./yup_tests
- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target yup_tests

build_tests_release:
runs-on: ubuntu-latest
needs: [configure]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: seanmiddleditch/gha-setup-ninja@master
- run: sudo apt-get update && sudo apt-get install -y ${INSTALL_DEPS}
- uses: actions/cache/restore@v4
id: cache-restore
with:
path: ${{ runner.workspace }}/build
key: linux-build-${{ github.sha }}
- name: Configure If Cache Missed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_TESTS=ON
- run: cmake --build ${{ runner.workspace }}/build --config Release --target yup_tests
- working-directory: ${{ runner.workspace }}/build/tests/Release
run: ./yup_tests

Expand All @@ -101,8 +115,8 @@ jobs:
- name: Configure If Cache Missed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_EXAMPLES=ON
- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target example_console
- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target example_console
- run: cmake --build ${{ runner.workspace }}/build --config Debug --target example_console
- run: cmake --build ${{ runner.workspace }}/build --config Release --target example_console

build_app:
runs-on: ubuntu-latest
Expand All @@ -121,8 +135,8 @@ jobs:
- name: Configure If Cache Missed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_EXAMPLES=ON
- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target example_app
- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target example_app
- run: cmake --build ${{ runner.workspace }}/build --config Debug --target example_app
- run: cmake --build ${{ runner.workspace }}/build --config Release --target example_app

build_graphics:
runs-on: ubuntu-latest
Expand All @@ -141,8 +155,8 @@ jobs:
- name: Configure If Cache Missed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_EXAMPLES=ON
- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target example_graphics
- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target example_graphics
- run: cmake --build ${{ runner.workspace }}/build --config Debug --target example_graphics
- run: cmake --build ${{ runner.workspace }}/build --config Release --target example_graphics

build_plugin:
runs-on: ubuntu-latest
Expand All @@ -161,9 +175,9 @@ jobs:
- name: Configure If Cache Missed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_EXAMPLES=ON
- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target example_plugin_clap_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target example_plugin_clap_plugin
#- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target example_plugin_vst3_plugin
#- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target example_plugin_vst3_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target example_plugin_standalone_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target example_plugin_standalone_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Debug --target example_plugin_clap_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Release --target example_plugin_clap_plugin
#- run: cmake --build ${{ runner.workspace }}/build --config Debug --target example_plugin_vst3_plugin
#- run: cmake --build ${{ runner.workspace }}/build --config Release --target example_plugin_vst3_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Debug --target example_plugin_standalone_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Release --target example_plugin_standalone_plugin
55 changes: 34 additions & 21 deletions .github/workflows/build_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,25 @@ concurrency:
jobs:
configure:
runs-on: macos-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: seanmiddleditch/gha-setup-ninja@master

- name: Configure
run: cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_TESTS=ON -DYUP_ENABLE_EXAMPLES=ON

- name: Build SDL2
run: |
cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target SDL2-static
cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target SDL2-static

cmake --build ${{ runner.workspace }}/build --config Debug --target SDL2-static
cmake --build ${{ runner.workspace }}/build --config Release --target SDL2-static
- name: Cache Configure
id: cache-build
uses: actions/cache/save@v4
with:
path: ${{ runner.workspace }}/build
key: macos-build-${{ github.sha }}

build_tests:
build_tests_debug:
runs-on: macos-latest
needs: [configure]
steps:
Expand All @@ -67,10 +63,27 @@ jobs:
- name: Configure If Cache Missed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_TESTS=ON
- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target yup_tests
- run: cmake --build ${{ runner.workspace }}/build --config Debug --target yup_tests
- working-directory: ${{ runner.workspace }}/build/tests/Debug
run: ./yup_tests.app/Contents/MacOS/yup_tests
- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target yup_tests

build_tests_release:
runs-on: macos-latest
needs: [configure]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: seanmiddleditch/gha-setup-ninja@master
- uses: actions/cache/restore@v4
id: cache-restore
with:
path: ${{ runner.workspace }}/build
key: macos-build-${{ github.sha }}
- name: Configure If Cache Missed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_TESTS=ON
- run: cmake --build ${{ runner.workspace }}/build --config Release --target yup_tests
- working-directory: ${{ runner.workspace }}/build/tests/Release
run: ./yup_tests.app/Contents/MacOS/yup_tests

Expand All @@ -90,8 +103,8 @@ jobs:
- name: Configure If Cache Missed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_EXAMPLES=ON
- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target example_console
- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target example_console
- run: cmake --build ${{ runner.workspace }}/build --config Debug --target example_console
- run: cmake --build ${{ runner.workspace }}/build --config Release --target example_console

build_app:
runs-on: macos-latest
Expand All @@ -109,8 +122,8 @@ jobs:
- name: Configure If Cache Missed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_EXAMPLES=ON
- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target example_app
- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target example_app
- run: cmake --build ${{ runner.workspace }}/build --config Debug --target example_app
- run: cmake --build ${{ runner.workspace }}/build --config Release --target example_app

build_graphics:
runs-on: macos-latest
Expand All @@ -128,8 +141,8 @@ jobs:
- name: Configure If Cache Missed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_EXAMPLES=ON
- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target example_graphics
- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target example_graphics
- run: cmake --build ${{ runner.workspace }}/build --config Debug --target example_graphics
- run: cmake --build ${{ runner.workspace }}/build --config Release --target example_graphics

build_plugins:
runs-on: macos-latest
Expand All @@ -147,9 +160,9 @@ jobs:
- name: Configure If Cache Missed
if: steps.cache-restore.outputs.cache-hit != 'true'
run: cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_EXAMPLES=ON
- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target example_plugin_clap_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target example_plugin_clap_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target example_plugin_vst3_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target example_plugin_vst3_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target example_plugin_standalone_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target example_plugin_standalone_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Debug --target example_plugin_clap_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Release --target example_plugin_clap_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Debug --target example_plugin_vst3_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Release --target example_plugin_vst3_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Debug --target example_plugin_standalone_plugin
- run: cmake --build ${{ runner.workspace }}/build --config Release --target example_plugin_standalone_plugin
Loading
Loading