name: MSYS2 on: # push only on master: a branch push and its pull request otherwise run # every job twice on the same commit. paths-ignore skips work the change # cannot affect - no job here builds anything # under contrib/, and prose does not change decoded output. push: branches: [master] paths-ignore: - 'docs/**' - '**.md' - 'LICENSE' - '.gitignore' - 'contrib/**' pull_request: paths-ignore: - 'docs/**' - '**.md' - 'LICENSE' - '.gitignore' - 'contrib/**' # Cancel superseded runs: a force-push otherwise leaves the previous commit's # jobs running to completion alongside the new ones. Never cancels master. concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} jobs: build: runs-on: ${{ matrix.os }} # Cap a wedged runner. The slowest legitimate job here finishes well # inside this; without it a VM that fails to boot runs to GitHub's # six-hour maximum, which has happened. timeout-minutes: 15 strategy: matrix: include: - { os: windows-latest, sys: mingw32 } - { os: windows-latest, sys: mingw64 } - { os: windows-latest, sys: ucrt64 } - { os: windows-latest, sys: clang64 } - { os: windows-11-arm, sys: clangarm64 } defaults: run: shell: msys2 {0} steps: - uses: actions/checkout@v7 - uses: msys2/setup-msys2@v2 with: msystem: ${{matrix.sys}} update: true install: make pacboy: >- cmake:p toolchain:p - name: Configure CMake run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release - name: Build run: cmake --build ${{github.workspace}}/build --config Release