Debian Codegraph @

.github/workflows/msys2-clang.yml

raw
1 name: MSYS2-CLANG-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-libxml2 mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-clang
18 type: Release
19 - msystem: "MINGW32"
20 install: mingw-w64-i686-libxml2 mingw-w64-i686-cmake mingw-w64-i686-ninja mingw-w64-i686-clang
21 type: Release
22 env:
23 CMAKE_GENERATOR: Ninja
24
25 steps:
26 - uses: actions/checkout@v5
27 - uses: msys2/setup-msys2@v2
28 with:
29 update: true
30 msystem: ${{ matrix.msystem }}
31 install: ${{ matrix.install }}
32 - name: Prepare build dir
33 run: mkdir build
34 - name: Configure
35 run: cd build && cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DFASTFLOAT_TEST=ON ..
36 - name: Build
37 run: cmake --build build
38 - name: Run basic tests
39 run: cd build && ctest --output-on-failure -R basictest