mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +08:00
ci: add vcpkg cache
This commit is contained in:
14
.github/workflows/release-build.yml
vendored
14
.github/workflows/release-build.yml
vendored
@@ -27,7 +27,9 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
env:
|
||||||
|
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/.vcpkg-cache
|
||||||
|
VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/.vcpkg-cache,readwrite
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -48,12 +50,18 @@ jobs:
|
|||||||
- name: Setup MSVC
|
- name: Setup MSVC
|
||||||
if: matrix.platform == 'windows'
|
if: matrix.platform == 'windows'
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
- name: Cache vcpkg
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: .vcpkg-cache
|
||||||
|
key: ${{ runner.os }}-vcpkg-${{ hashFiles('vcpkg.json') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-vcpkg-
|
||||||
- name: Bootstrap vcpkg
|
- name: Bootstrap vcpkg
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/microsoft/vcpkg.git
|
git clone https://github.com/microsoft/vcpkg.git
|
||||||
./vcpkg/bootstrap-vcpkg.bat
|
./vcpkg/bootstrap-vcpkg.bat
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
if: matrix.platform == 'windows'
|
if: matrix.platform == 'windows'
|
||||||
run: >
|
run: >
|
||||||
|
|||||||
@@ -5,7 +5,10 @@
|
|||||||
"openal-soft",
|
"openal-soft",
|
||||||
"harfbuzz",
|
"harfbuzz",
|
||||||
"freetype",
|
"freetype",
|
||||||
"sdl3"
|
{
|
||||||
|
"name": "sdl3",
|
||||||
|
"default-features": false
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"builtin-baseline": "a0400024711b283056538ac19ced80b91a83c24c"
|
"builtin-baseline": "a0400024711b283056538ac19ced80b91a83c24c"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user