Simplify vcpkg caching and use system vcpkg (#7473)
* Fixed OpenSSL exe dir to use tools dir * Simplify vcpkg caching and use system vcpkg * Only use ref for version when ref is a tag * Add condition for event input * Add restore keys for vcpkg cache * Improve step name for vcpkg_installed * Use `windows-2022` runner * Update ChangeLog * Revert "Use `windows-2022` runner" This reverts commit f9e00cbcb3588e58914d2b9e73b3c5734a12d329.
This commit is contained in:
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -65,13 +65,12 @@ jobs:
|
||||
- name: Get version
|
||||
uses: ./.github/actions/get-version
|
||||
|
||||
- name: Cache vcpkg dirs
|
||||
- name: Cache vcpkg dir
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
vcpkg
|
||||
vcpkg_installed
|
||||
path: vcpkg_installed
|
||||
key: vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json', 'vcpkg-configuration.json') }}
|
||||
restore-keys: vcpkg-${{ runner.os }}
|
||||
|
||||
- name: Cache Python env
|
||||
uses: actions/cache@v4
|
||||
@ -99,11 +98,6 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: python ./scripts/install_deps.py
|
||||
|
||||
# The vcpkg downloads dir can be quite large (over 2GB) which bloats the cache.
|
||||
# For the most part, we don't need it so it probably safe to discard it.
|
||||
- name: Cleanup vcpkg downloads
|
||||
run: Remove-Item -Path vcpkg/downloads -Recurse -Force
|
||||
|
||||
- name: Configure
|
||||
run: cmake -B build --preset=windows-release
|
||||
|
||||
|
||||
Reference in New Issue
Block a user