| 1 |
name: Verifying libpng on Windows |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- libpng16 |
| 7 |
- libpng18 |
| 8 |
pull_request: |
| 9 |
branches: |
| 10 |
- libpng16 |
| 11 |
- libpng18 |
| 12 |
|
| 13 |
jobs: |
| 14 |
verify-windows: |
| 15 |
runs-on: windows-latest |
| 16 |
timeout-minutes: 10 |
| 17 |
steps: |
| 18 |
- name: Set up vcpkg cache |
| 19 |
uses: actions/cache@v4 |
| 20 |
with: |
| 21 |
path: C:/vcpkg/installed |
| 22 |
key: ${{ runner.os }}-vcpkg-${{ hashFiles('vcpkg.json', '**/vcpkg.json') }} |
| 23 |
restore-keys: ${{ runner.os }}-vcpkg- |
| 24 |
- name: Install dependencies |
| 25 |
run: | |
| 26 |
vcpkg install zlib:x64-windows |
| 27 |
vcpkg integrate install |
| 28 |
- name: Check out the code |
| 29 |
uses: actions/checkout@v4 |
| 30 |
- name: Run the CMake verification script |
| 31 |
run: bash ./ci/ci_verify_cmake.sh |
| 32 |
env: |
| 33 |
CI_CMAKE_GENERATOR: Visual Studio 17 2022 |
| 34 |
CI_CMAKE_GENERATOR_PLATFORM: x64 |
| 35 |
CI_CMAKE_TOOLCHAIN_FILE: C:/vcpkg/scripts/buildsystems/vcpkg.cmake |
| 36 |
CI_CMAKE_BUILD_FLAGS: -j2 |
| 37 |
CI_CTEST_FLAGS: -j2 |