diff options
author | Azat Khuzhin <azat@libevent.org> | 2021-11-30 22:37:32 +0300 |
---|---|---|
committer | Azat Khuzhin <azat@libevent.org> | 2021-11-30 22:37:32 +0300 |
commit | 3b9c7dd6d64efef323e3971d1d72c069b507d617 (patch) | |
tree | a38c239b531c39fbd036526e5763a231fe447870 /.github | |
parent | 883630f76cbf512003b81de25cd96cb75c6cf0f9 (diff) | |
download | libevent-3b9c7dd6d64efef323e3971d1d72c069b507d617.tar.gz |
ci: remove deprecated windows-2016 image
Refs: https://github.blog/changelog/2021-10-19-github-actions-the-windows-2016-runner-image-will-be-removed-from-github-hosted-runners-on-march-15-2022
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/windows.yml | 99 |
1 files changed, 1 insertions, 98 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 67169e58..660ff53d 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -19,98 +19,6 @@ on: - 'LICENSE' jobs: - vs2017: - runs-on: ${{ matrix.os }} - if: "!contains(github.event.head_commit.message, 'ci skip')" - strategy: - fail-fast: false - matrix: - os: [windows-2016] - EVENT_MATRIX: [NONE] - - steps: - - uses: actions/checkout@v2.0.0 - - - name: Cache Build - uses: actions/cache@v2 - with: - path: build - key: ${{ matrix.os }}-${{ matrix.EVENT_MATRIX }}-v4 - - - name: Prepare vcpkg - uses: lukka/run-vcpkg@v7 - id: runvcpkg - with: - vcpkgArguments: zlib:x64-windows openssl:x64-windows mbedtls:x64-windows - vcpkgDirectory: ${{ runner.workspace }}/vcpkg/ - vcpkgTriplet: x64-windows - vcpkgGitCommitId: 7bc5b8cdfaf35329c1520b2af8d368e2b1cb78e6 - - - name: Build - shell: powershell - run: | - $EVENT_BUILD_PARALLEL=10 - - mkdir build -ea 0 - cd build - - $CMAKE_CMD="cmake -G 'Visual Studio 15 2017 Win64' -DCMAKE_TOOLCHAIN_FILE=${{ runner.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake .." - function cmake_configure($retry) - { - $errcode=0 - try { - if ($retry -eq 0) { - echo "[cmake configure retry] $CMAKE_CMD" - } else { - echo "[cmake configure] $CMAKE_CMD" - } - Invoke-Expression $CMAKE_CMD - $errcode=$LastExitCode - } - catch { - $errcode=1 - } - finally { - if ($errcode -ne 0) { - if ($retry -eq 0) { - $host.SetShouldExit($LastExitCode) - } else { - echo "Remove all entries in build directory" - rm -r -fo * - cmake_configure 0 - } - } - } - } - cmake_configure 1 - cmake --build . -j $EVENT_BUILD_PARALLEL -- /nologo /verbosity:minimal - - - name: Test - shell: powershell - run: | - $EVENT_TESTS_PARALLEL=1 - - cd build - - try { - if ("${{ matrix.EVENT_MATRIX }}" -eq "TEST_EXPORT_STATIC") { - python ../test-export/test-export.py static - } elseif ("${{ matrix.EVENT_MATRIX }}" -eq "TEST_EXPORT_SHARED") { - python ../test-export/test-export.py shared - } else { - ctest --output-on-failure -j $EVENT_TESTS_PARALLEL - if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } - } - } catch { - $host.SetShouldExit($LastExitCode) - } - - - uses: actions/upload-artifact@v1 - if: failure() - with: - name: ${{ matrix.os }}-${{ matrix.EVENT_MATRIX }}-build - path: build - vs2019: runs-on: ${{ matrix.os }} if: "!contains(github.event.head_commit.message, 'ci skip')" @@ -187,12 +95,7 @@ jobs: mkdir build -ea 0 cd build - if ("${{ matrix.os }}" -eq "windows-2016") { - $CMAKE_CMD="cmake -G 'Visual Studio 15 2017 Win64' -DCMAKE_TOOLCHAIN_FILE=${{ runner.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake .." - } - else { # windows-2019 - $CMAKE_CMD="cmake -G 'Visual Studio 16 2019' -A x64 -DCMAKE_TOOLCHAIN_FILE=${{ runner.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake .. $EVENT_CMAKE_OPTIONS" - } + $CMAKE_CMD="cmake -G 'Visual Studio 16 2019' -A x64 -DCMAKE_TOOLCHAIN_FILE=${{ runner.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake .. $EVENT_CMAKE_OPTIONS" function cmake_configure($retry) { $errcode=0 |