1name: Windows 2 3on: [push, pull_request] 4 5jobs: 6 msvc2019: 7 runs-on: windows-latest 8 9 steps: 10 - uses: actions/checkout@v1 11 - name: cmake 12 run: cmake -S . -B build -G "Visual Studio 16 2019" -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On 13 - name: build 14 run: cmake --build build --parallel 10 15 - name: test 16 run: cd build ; ctest -j 10 -C Debug --exclude-regex "test-unicode" --output-on-failure 17 18 clang9: 19 runs-on: windows-latest 20 21 steps: 22 - uses: actions/checkout@v1 23 - name: install Clang 24 run: curl -fsSL -o LLVM9.exe https://releases.llvm.org/9.0.0/LLVM-9.0.0-win64.exe ; 7z x LLVM9.exe -y -o"C:/Program Files/LLVM" 25 - name: cmake 26 run: cmake -S . -B build -DCMAKE_CXX_COMPILER="C:/Program Files/LLVM/bin/clang++.exe" -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On 27 - name: build 28 run: cmake --build build --parallel 10 29 - name: test 30 run: cd build ; ctest -j 10 -C Debug --exclude-regex "test-unicode" --output-on-failure 31 32 clang10: 33 runs-on: windows-latest 34 35 steps: 36 - uses: actions/checkout@v1 37 - name: install Clang 38 run: curl -fsSL -o LLVM10.exe https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/LLVM-10.0.0-win64.exe ; 7z x LLVM10.exe -y -o"C:/Program Files/LLVM" 39 - name: cmake 40 run: cmake -S . -B build -DCMAKE_CXX_COMPILER="C:/Program Files/LLVM/bin/clang++.exe" -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On 41 - name: build 42 run: cmake --build build --parallel 10 43 - name: test 44 run: cd build ; ctest -j 10 -C Debug --exclude-regex "test-unicode" --output-on-failure 45 46 clang-cl-10-x64: 47 runs-on: windows-latest 48 49 steps: 50 - uses: actions/checkout@v1 51 - name: cmake 52 run: cmake -S . -B build -G "Visual Studio 16 2019" -A x64 -T ClangCL -DJSON_BuildTests=On 53 - name: build 54 run: cmake --build build --config Debug --parallel 10 55 - name: test 56 run: cd build ; ctest -j 10 -C Debug --exclude-regex "test-unicode" --output-on-failure 57 58 clang-cl-10-x86: 59 runs-on: windows-latest 60 61 steps: 62 - uses: actions/checkout@v1 63 - name: cmake 64 run: cmake -S . -B build -G "Visual Studio 16 2019" -A Win32 -T ClangCL -DJSON_BuildTests=On 65 - name: build 66 run: cmake --build build --config Debug --parallel 10 67 - name: test 68 run: cd build ; ctest -j 10 -C Debug --exclude-regex "test-unicode" --output-on-failure 69