| 1 | name: Windows |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | push: |
| 6 | branches: [ master ] |
| 7 | pull_request: |
| 8 | branches: [ master ] |
| 9 | |
| 10 | jobs: |
| 11 | build: |
| 12 | runs-on: windows-latest |
| 13 | name: "build: ${{ matrix.arch }} ${{ matrix.config }} ${{ matrix.link }}" |
| 14 | strategy: |
| 15 | fail-fast: false |
| 16 | matrix: |
| 17 | arch: [Win32, x64] |
| 18 | config: [Debug, Release] |
| 19 | link: [static, dll] |
| 20 | |
| 21 | include: |
| 22 | - link: static |
| 23 | shlib: "OFF" |
| 24 | - link: dll |
| 25 | shlib: "ON" |
| 26 | steps: |
| 27 | - uses: actions/checkout@v4 |
| 28 | - name: configure |
| 29 | run: cmake -Bbuild -DUSE_ASYNC:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shlib }} -A ${{ matrix.arch }} |
| 30 | - name: make |
| 31 | run: cmake --build build --config ${{ matrix.config }} |
| 32 | - name: make check |
| 33 | run: ctest --test-dir build -T test -C ${{ matrix.config }} -j8 --output-on-failure |