3636jobs :
3737 configure :
3838 runs-on : ubuntu-latest
39-
4039 steps :
4140 - uses : actions/checkout@v4
4241 with :
4342 fetch-depth : 0
4443 - uses : seanmiddleditch/gha-setup-ninja@master
4544 - name : Install Dependencies
4645 run : sudo apt-get update && sudo apt-get install -y ${INSTALL_DEPS}
47-
4846 - name : Configure
4947 run : cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_TESTS=ON -DYUP_ENABLE_EXAMPLES=ON
50-
5148 - name : Build SDL2
5249 run : |
53- cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 --target SDL2-static
54- cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target SDL2-static
55-
50+ cmake --build ${{ runner.workspace }}/build --config Debug --target SDL2-static
51+ cmake --build ${{ runner.workspace }}/build --config Release --target SDL2-static
5652 - name : Cache Configure
5753 id : cache-build
5854 uses : actions/cache/save@v4
5955 with :
6056 path : ${{ runner.workspace }}/build
6157 key : linux-build-${{ github.sha }}
6258
63- build_tests :
59+ build_tests_debug :
6460 runs-on : ubuntu-latest
6561 needs : [configure]
6662 steps :
@@ -77,10 +73,28 @@ jobs:
7773 - name : Configure If Cache Missed
7874 if : steps.cache-restore.outputs.cache-hit != 'true'
7975 run : cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_TESTS=ON
80- - run : cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 -- target yup_tests
76+ - run : cmake --build ${{ runner.workspace }}/build --config Debug --target yup_tests
8177 - working-directory : ${{ runner.workspace }}/build/tests/Debug
8278 run : ./yup_tests
83- - run : cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 --target yup_tests
79+
80+ build_tests_release :
81+ runs-on : ubuntu-latest
82+ needs : [configure]
83+ steps :
84+ - uses : actions/checkout@v4
85+ with :
86+ fetch-depth : 0
87+ - uses : seanmiddleditch/gha-setup-ninja@master
88+ - run : sudo apt-get update && sudo apt-get install -y ${INSTALL_DEPS}
89+ - uses : actions/cache/restore@v4
90+ id : cache-restore
91+ with :
92+ path : ${{ runner.workspace }}/build
93+ key : linux-build-${{ github.sha }}
94+ - name : Configure If Cache Missed
95+ if : steps.cache-restore.outputs.cache-hit != 'true'
96+ run : cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_TESTS=ON
97+ - run : cmake --build ${{ runner.workspace }}/build --config Release --target yup_tests
8498 - working-directory : ${{ runner.workspace }}/build/tests/Release
8599 run : ./yup_tests
86100
@@ -101,8 +115,8 @@ jobs:
101115 - name : Configure If Cache Missed
102116 if : steps.cache-restore.outputs.cache-hit != 'true'
103117 run : cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_EXAMPLES=ON
104- - run : cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 -- target example_console
105- - run : cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 -- target example_console
118+ - run : cmake --build ${{ runner.workspace }}/build --config Debug --target example_console
119+ - run : cmake --build ${{ runner.workspace }}/build --config Release --target example_console
106120
107121 build_app :
108122 runs-on : ubuntu-latest
@@ -121,8 +135,8 @@ jobs:
121135 - name : Configure If Cache Missed
122136 if : steps.cache-restore.outputs.cache-hit != 'true'
123137 run : cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_EXAMPLES=ON
124- - run : cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 -- target example_app
125- - run : cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 -- target example_app
138+ - run : cmake --build ${{ runner.workspace }}/build --config Debug --target example_app
139+ - run : cmake --build ${{ runner.workspace }}/build --config Release --target example_app
126140
127141 build_graphics :
128142 runs-on : ubuntu-latest
@@ -141,8 +155,8 @@ jobs:
141155 - name : Configure If Cache Missed
142156 if : steps.cache-restore.outputs.cache-hit != 'true'
143157 run : cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_EXAMPLES=ON
144- - run : cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 -- target example_graphics
145- - run : cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 -- target example_graphics
158+ - run : cmake --build ${{ runner.workspace }}/build --config Debug --target example_graphics
159+ - run : cmake --build ${{ runner.workspace }}/build --config Release --target example_graphics
146160
147161 build_plugin :
148162 runs-on : ubuntu-latest
@@ -161,9 +175,9 @@ jobs:
161175 - name : Configure If Cache Missed
162176 if : steps.cache-restore.outputs.cache-hit != 'true'
163177 run : cmake ${{ github.workspace }} -G "Ninja Multi-Config" -B ${{ runner.workspace }}/build -DYUP_ENABLE_EXAMPLES=ON
164- - run : cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 -- target example_plugin_clap_plugin
165- - run : cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 -- target example_plugin_clap_plugin
166- # - run: cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 -- target example_plugin_vst3_plugin
167- # - run: cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 -- target example_plugin_vst3_plugin
168- - run : cmake --build ${{ runner.workspace }}/build --config Debug --parallel 4 -- target example_plugin_standalone_plugin
169- - run : cmake --build ${{ runner.workspace }}/build --config Release --parallel 4 -- target example_plugin_standalone_plugin
178+ - run : cmake --build ${{ runner.workspace }}/build --config Debug --target example_plugin_clap_plugin
179+ - run : cmake --build ${{ runner.workspace }}/build --config Release --target example_plugin_clap_plugin
180+ # - run: cmake --build ${{ runner.workspace }}/build --config Debug --target example_plugin_vst3_plugin
181+ # - run: cmake --build ${{ runner.workspace }}/build --config Release --target example_plugin_vst3_plugin
182+ - run : cmake --build ${{ runner.workspace }}/build --config Debug --target example_plugin_standalone_plugin
183+ - run : cmake --build ${{ runner.workspace }}/build --config Release --target example_plugin_standalone_plugin
0 commit comments