Skip to content

CI: use the preinstalled mingw-w64 and ninja on windows-latest #420

CI: use the preinstalled mingw-w64 and ninja on windows-latest

CI: use the preinstalled mingw-w64 and ninja on windows-latest #420

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