Skip to content

ci azure: reorganize Stage & Job #298

ci azure: reorganize Stage & Job

ci azure: reorganize Stage & Job #298

Workflow file for this run

name: "Windows"
on: [push, workflow_dispatch]
env:
VCPKG_FEATURE_FLAGS: "registries,binarycaching,manifests,versions"
jobs:
overlay:
runs-on: "windows-2022"
strategy:
matrix:
include:
# - vcpkg_tag: "2023.10.19"
# vcpkg_commit: "8eb57355a4ffb410a2e94c07b4dca2dffbee8e50"
# - vcpkg_tag: "2023.11.20"
# vcpkg_commit: "a42af01b72c28a8e1d7b48107b33e4f286a55ef6"
- vcpkg_tag: "2023.12.12"
vcpkg_commit: "c8696863d371ab7f46e213d8f5ca923c4aef2a00"
fail-fast: false
env:
VCPKG_DOWNLOADS: "C:/vcpkg/downloads"
VCPKG_DEFAULT_BINARY_CACHE: "C:/vcpkg/archives"
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports"
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets"
steps:
- uses: actions/checkout@v4.1.1
- uses: microsoft/setup-msbuild@v1.3.1
with:
msbuild-architecture: x64
- name: "create cache folders"
run: |
New-Item -Type Directory -Force ${env:VCPKG_DOWNLOADS}
New-Item -Type Directory -Force ${env:VCPKG_DEFAULT_BINARY_CACHE}
- uses: actions/cache@v3.3.2
with:
key: "v2404-x64-windows-${{ matrix.vcpkg_tag }}"
path: |
C:/vcpkg/downloads
C:/vcpkg/archives
- uses: lukka/run-vcpkg@v11.3
with:
vcpkgDirectory: "C:/vcpkg"
vcpkgGitCommitId: "${{ matrix.vcpkg_commit }}"
vcpkgJsonGlob: "test/vcpkg.json"
runVcpkgInstall: true
runVcpkgFormatString: '[`install`, `--clean-buildtrees-after-build`, `--clean-packages-after-build`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`]'
env:
VCPKG_DEFAULT_TRIPLET: "x64-windows"
VCPKG_BINARY_SOURCES: "default"