@@ -13,21 +13,41 @@ jobs:
1313 name : " Windows MSVC" ,
1414 enabled : 1,
1515 os : windows-latest,
16- deps : " " ,
16+ deps1 : " " ,
1717 config : " cmake
1818 -B build
1919 -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
2020 -DRTOSC_WERROR=1
2121 -DCMAKE_BUILD_TYPE=Release
2222 " ,
2323 build : " cmake --build build --config Release" ,
24+ test : " ctest --output-on-failure --test-dir build -C Release"
25+ }
26+ - {
27+ name : " MinGW" ,
28+ enabled : 1,
29+ os : ubuntu-latest,
30+ update : " sudo apt-get update" ,
31+ deps1 : " sudo apt-get install -y mingw-w64 cmake ninja-build wine64" ,
32+ deps2 : " ./build-mingw-deps $RUNNER_TEMP" ,
33+ config : " PKG_CONFIG_PATH=$RUNNER_TEMP/prefix/lib/pkgconfig
34+ cmake
35+ -S .
36+ -B build
37+ -G Ninja
38+ -DRTOSC_WERROR=ON
39+ -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/mingw64.cmake
40+ -DMINGW_PREFIX=$RUNNER_TEMP/prefix
41+ -DCMAKE_BUILD_TYPE=Debug
42+ " ,
43+ build : " cmake --build build --config Debug" ,
2444 test : " ctest --output-on-failure --test-dir build"
2545 }
2646 - {
2747 name : " Ubuntu gcc" ,
2848 enabled : 1,
2949 os : ubuntu-latest,
30- deps : " sudo apt-get install liblo-dev" ,
50+ deps1 : " sudo apt-get install liblo-dev" ,
3151 config : " cd build && cmake -DRTOSC_WERROR=1 .." ,
3252 build : " cd build && make" ,
3353 test : " cd build && ctest --output-on-failure"
3656 name : " Ubuntu clang+lld" ,
3757 enabled : 1,
3858 os : ubuntu-latest,
39- deps : " sudo apt-get install liblo-dev" ,
59+ deps1 : " sudo apt-get install liblo-dev" ,
4060 config : " cd build &&
4161 cmake
4262 -DRTOSC_WERROR=1
5272 name : " macOS clang" ,
5373 enabled : 1,
5474 os : macos-latest,
55- deps : " brew install liblo" ,
75+ deps1 : " brew install liblo" ,
5676 config : " cd build && cmake -DRTOSC_WERROR=1 .." ,
5777 build : " cd build && make" ,
5878 test : " cd build && ctest --output-on-failure"
6282 uses : actions/checkout@v4
6383 with :
6484 fetch-depth : 0
65- - name : install deps
85+ - name : update system
86+ if : ${{ matrix.config.enabled == 1 }}
87+ run : ${{ matrix.config.update }}
88+ - name : install deps (1)
89+ if : ${{ matrix.config.enabled == 1 }}
90+ run : ${{ matrix.config.deps1 }}
91+ - name : install deps (2)
6692 if : ${{ matrix.config.enabled == 1 }}
67- run : ${{ matrix.config.deps }}
93+ run : ${{ matrix.config.deps2 }}
6894 - name : create build directory
6995 if : ${{ matrix.config.enabled == 1 }}
7096 run : mkdir build
0 commit comments