CI: use the preinstalled mingw-w64 and ninja on windows-latest #420
This file contains hidden or 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
| name: windows_gcc | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'docs/**' | |
| branches: [ master ] # CI on PRs targeting master | |
| pull_request: | |
| branches: [ master ] # CI on PRs targeting master | |
| jobs: | |
| windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # No toolchain setup step: windows-latest ships mingw-w64 (gcc, ucrt, posix | |
| # threads) at C:\mingw64\bin and ninja, both already on PATH. | |
| - run: | | |
| mkdir build | |
| cd build | |
| cmake -GNinja -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DUSE_WS=1 -DUSE_TEST=1 -DUSE_ZLIB=0 -DCMAKE_UNITY_BUILD=ON .. | |
| - run: | | |
| cd build | |
| ninja | |
| - run: | | |
| cd build | |
| ctest -V |