Enhance: vcpkg cache (#142)

* try customizing binary caching .
This commit is contained in:
Zero Fanker 2025-08-01 00:27:13 -04:00 committed by GitHub
parent e97c36f548
commit 37b48921fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View file

@ -49,11 +49,16 @@ jobs:
3rdParty/xcc/vcpkg_downloads
3rdParty/xcc/vcpkg_installed
C:/Users/runneradmin/AppData/Local/vcpkg
3rdParty/xcc/binary-cache
key: ${{ runner.os }}-vcpkg-${{ hashFiles('3rdParty/xcc/vcpkg.json') }}
- name: Vcpkg install
run: |
cd 3rdParty/xcc
if (-not (Test-Path "binary-cache")) {
mkdir "binary-cache"
}
$env:VCPKG_DOWNLOADS = $PWD
$env:VCPKG_BINARY_SOURCES="files,$PWD\binary-cache,readwrite"
$vcpkgPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\vcpkg"
# rm "$vcpkgPath\.vcpkg-root"
& "$vcpkgPath\vcpkg" install `

View file

@ -33,12 +33,17 @@ jobs:
path: |
3rdParty/xcc/vcpkg_downloads
3rdParty/xcc/vcpkg_installed
3rdParty/xcc/binary-cache
C:/Users/runneradmin/AppData/Local/vcpkg
key: ${{ runner.os }}-vcpkg-${{ hashFiles('3rdParty/xcc/vcpkg.json') }}
- name: Vcpkg install
run: |
cd 3rdParty/xcc
if (-not (Test-Path "binary-cache")) {
mkdir "binary-cache"
}
$env:VCPKG_DOWNLOADS = $PWD
$env:VCPKG_BINARY_SOURCES="files,$PWD\binary-cache,readwrite"
$vcpkgPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\vcpkg"
# rm "$vcpkgPath\.vcpkg-root"
& "$vcpkgPath\vcpkg" install `
@ -64,6 +69,7 @@ jobs:
path: |
3rdParty/xcc/vcpkg_downloads
3rdParty/xcc/vcpkg_installed
3rdParty/xcc/binary-cache
C:/Users/runneradmin/AppData/Local/vcpkg
key: ${{ runner.os }}-vcpkg-${{ hashFiles('3rdParty/xcc/vcpkg.json') }}
- name: do UT