ci: Add support for testing libpng on Windows ARM64 This is a cherry-pick of commit 92c853c34e41570504baa48b8a8169e53b188324 from branch 'libpng18'. Co-authored-by: Cosmin Truta <ctruta@gmail.com> Signed-off-by: Cosmin Truta <ctruta@gmail.com>
diff --git a/.github/workflows/verify-windows.yml b/.github/workflows/verify-windows.yml index 02c2c61..0bedb8a 100644 --- a/.github/workflows/verify-windows.yml +++ b/.github/workflows/verify-windows.yml
@@ -15,26 +15,37 @@ jobs: verify-windows: - runs-on: windows-latest + strategy: + matrix: + include: + - os: windows-latest + vcpkg_triplet: x64-windows + cmake_generator: Visual Studio 17 2022 + cmake_generator_platform: x64 + - os: windows-11-arm + vcpkg_triplet: arm64-windows + cmake_generator: Visual Studio 17 2022 + cmake_generator_platform: ARM64 + runs-on: ${{ matrix.os }} timeout-minutes: 10 steps: - name: Set up vcpkg cache uses: actions/cache@v4 with: path: C:/vcpkg/installed - key: ${{ runner.os }}-vcpkg-${{ hashFiles('vcpkg.json', '**/vcpkg.json') }} - restore-keys: ${{ runner.os }}-vcpkg- + key: ${{ runner.os }}-vcpkg-${{ matrix.vcpkg_triplet }}-${{ hashFiles('vcpkg.json', '**/vcpkg.json') }} + restore-keys: ${{ runner.os }}-vcpkg-${{ matrix.vcpkg_triplet }}- - name: Install dependencies run: | - vcpkg install zlib:x64-windows + vcpkg install zlib:${{ matrix.vcpkg_triplet }} vcpkg integrate install - name: Check out the code uses: actions/checkout@v4 - name: Run the CMake verification script run: bash ./ci/ci_verify_cmake.sh env: - CI_CMAKE_GENERATOR: Visual Studio 17 2022 - CI_CMAKE_GENERATOR_PLATFORM: x64 + CI_CMAKE_GENERATOR: ${{ matrix.cmake_generator }} + CI_CMAKE_GENERATOR_PLATFORM: ${{ matrix.cmake_generator_platform }} CI_CMAKE_TOOLCHAIN_FILE: C:/vcpkg/scripts/buildsystems/vcpkg.cmake CI_CMAKE_BUILD_FLAGS: -j2 CI_CTEST_FLAGS: -j2