1name: CI-win 2 3on: 4 pull_request: 5 paths: 6 - '**' 7 - '!docs/**' 8 - '!src/unix/**' 9 - '!.**' 10 - '.github/workflows/CI-win.yml' 11 push: 12 branches: 13 - v[0-9].* 14 - master 15 16jobs: 17 build-windows: 18 runs-on: windows-${{ matrix.config.server }} 19 name: build-${{ matrix.config.toolchain}}-${{ matrix.config.arch}} 20 strategy: 21 fail-fast: false 22 matrix: 23 config: 24 - {toolchain: Visual Studio 16 2019, arch: Win32, server: 2019} 25 - {toolchain: Visual Studio 16 2019, arch: x64, server: 2019} 26 - {toolchain: Visual Studio 17 2022, arch: Win32, server: 2022} 27 - {toolchain: Visual Studio 17 2022, arch: x64, server: 2022} 28 steps: 29 - uses: actions/checkout@v2 30 - name: Envinfo 31 run: npx envinfo 32 - name: Build 33 shell: cmd 34 run: | 35 mkdir -p build 36 cd build 37 cmake .. -DBUILD_TESTING=ON -G "${{ matrix.config.toolchain }}" -A ${{ matrix.config.arch }} 38 cmake --build . 39 - name: platform_output 40 shell: cmd 41 run: | 42 build\\Debug\\uv_run_tests.exe platform_output 43 - name: platform_output_a 44 shell: cmd 45 run: | 46 build\\Debug\\uv_run_tests_a.exe platform_output 47 - name: Test 48 shell: cmd 49 run: | 50 cd build 51 ctest -C Debug -V 52