Remove VS2017 build, and remove installing ninja #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-20.04 | |
| strategy: | |
| matrix: | |
| platform: [x64] | |
| config: [Debug] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Install Ninja | |
| run: sudo apt-get update && sudo apt-get install -y ninja-build | |
| - name: Configure CMake | |
| run: cmake -B./build -DJSON_STRUCT_OPT_BUILD_BENCHMARKS=OFF -GNinja | |
| - name: Build | |
| run: ninja -C build | |
| - name: Test | |
| run: ctest --test-dir build | |
| build-windows-vs2015: | |
| runs-on: windows-2025 | |
| strategy: | |
| matrix: | |
| platform: [x86, x64] | |
| config: [Debug] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup MSVC (x86) | |
| if: matrix.platform == 'x86' | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x86 | |
| toolset: 14.0 | |
| - name: Setup MSVC (x64) | |
| if: matrix.platform == 'x64' | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x64 | |
| toolset: 14.0 | |
| - name: Configure CMake | |
| run: cmake -B./build -DJSON_STRUCT_OPT_BUILD_BENCHMARKS=OFF -GNinja | |
| - name: Build | |
| run: ninja -C build | |
| - name: Test | |
| run: ctest --test-dir build | |
| build-windows-vs2019: | |
| runs-on: windows-2025 | |
| strategy: | |
| matrix: | |
| platform: [x86, x64] | |
| config: [Debug] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup MSVC (x86) | |
| if: matrix.platform == 'x86' | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x86 | |
| toolset: 14.29 | |
| - name: Setup MSVC (x64) | |
| if: matrix.platform == 'x64' | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x64 | |
| toolset: 14.29 | |
| - name: Configure CMake | |
| run: cmake -B./build -DJSON_STRUCT_OPT_BUILD_BENCHMARKS=OFF -GNinja | |
| - name: Build | |
| run: ninja -C build | |
| - name: Test | |
| run: ctest --test-dir build | |
| build-windows-vs2022: | |
| runs-on: windows-2025 | |
| strategy: | |
| matrix: | |
| platform: [x86, x64] | |
| config: [Debug] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup MSVC (x86) | |
| if: matrix.platform == 'x86' | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x86 | |
| toolset: 14.44 | |
| - name: Setup MSVC (x64) | |
| if: matrix.platform == 'x64' | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x64 | |
| toolset: 14.44 | |
| - name: Configure CMake | |
| run: cmake -B./build -DJSON_STRUCT_OPT_BUILD_BENCHMARKS=OFF -GNinja | |
| - name: Build | |
| run: ninja -C build | |
| - name: Test | |
| run: ctest --test-dir build |