Skip to content

ci: test with vcpkg 2024.03.25 #32

ci: test with vcpkg 2024.03.25

ci: test with vcpkg 2024.03.25 #32

name: "Windows(Hosted)"
on: [push, workflow_dispatch]
env:
VCPKG_FEATURE_FLAGS: "registries,binarycaching,manifests,versions"
jobs:
x64_windows:
runs-on: ["self-hosted", "Windows"]
timeout-minutes: 300
env:
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports"
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets"
steps:
- uses: actions/checkout@v4.1.1
- uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64
- name: "create cache folders"
run: |
New-Item -Type Directory -Force ${env:VCPKG_DOWNLOADS}
Move-Item -Path "test/self-hosted.json" -Destination "test/vcpkg.json" -Force
- uses: lukka/run-vcpkg@v11.5
with:
vcpkgDirectory: "C:/vcpkg"
vcpkgGitCommitId: "a34c873a9717a888f58dc05268dea15592c2f0ff" # 2024.03.25
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"
- uses: yumis-coconudge/clean-workspace-action@v1.0.5
with:
additional-path: "C:/vcpkg/installed"