blob: 5f9bd338ed6b12a99f042f8deb60a6eb52034a66 [file] [edit]
# Copyright (C) 2025 Cosmin Truta
# SPDX-License-Identifier: MIT-0
name: Verifying libpng on Windows
on:
push:
branches:
- libpng16
- libpng18
pull_request:
branches:
- libpng16
- libpng18
jobs:
verify-windows:
strategy:
matrix:
include:
- os: windows-2025
vcpkg_triplet: x64-windows
cmake_generator: Visual Studio 18 2026
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-${{ matrix.vcpkg_triplet }}-${{ hashFiles('vcpkg.json', '**/vcpkg.json') }}
restore-keys: ${{ runner.os }}-vcpkg-${{ matrix.vcpkg_triplet }}-
- name: Install dependencies
run: |
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: ${{ 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