| 1 |
name: MSYS2-CI |
| 2 |
|
| 3 |
on: [push, pull_request] |
| 4 |
|
| 5 |
jobs: |
| 6 |
windows-mingw: |
| 7 |
name: ${{ matrix.msystem }} |
| 8 |
runs-on: windows-latest |
| 9 |
defaults: |
| 10 |
run: |
| 11 |
shell: msys2 {0} |
| 12 |
strategy: |
| 13 |
fail-fast: false |
| 14 |
matrix: |
| 15 |
include: |
| 16 |
- msystem: "MINGW64" |
| 17 |
install: mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gcc |
| 18 |
type: Release |
| 19 |
- msystem: "MINGW32" |
| 20 |
install: mingw-w64-i686-cmake mingw-w64-i686-ninja mingw-w64-i686-gcc |
| 21 |
type: Release |
| 22 |
- msystem: "MINGW64" |
| 23 |
install: mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gcc |
| 24 |
type: Debug |
| 25 |
- msystem: "MINGW32" |
| 26 |
install: mingw-w64-i686-cmake mingw-w64-i686-ninja mingw-w64-i686-gcc |
| 27 |
type: Debug |
| 28 |
env: |
| 29 |
CMAKE_GENERATOR: Ninja |
| 30 |
|
| 31 |
steps: |
| 32 |
- uses: actions/checkout@v5 |
| 33 |
- uses: msys2/setup-msys2@v2 |
| 34 |
with: |
| 35 |
update: true |
| 36 |
msystem: ${{ matrix.msystem }} |
| 37 |
install: ${{ matrix.install }} |
| 38 |
- name: Prepare build dir |
| 39 |
run: mkdir build |
| 40 |
- name: Configure |
| 41 |
run: cd build && cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DFASTFLOAT_TEST=ON .. |
| 42 |
- name: Build |
| 43 |
run: cmake --build build |
| 44 |
- name: Run basic tests |
| 45 |
run: cd build && ctest --output-on-failure -R basictest |