-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (47 loc) · 1.75 KB
/
build-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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"