Skip to content

Commit e66d1f0

Browse files
try github actions binary cache for vcpkg
1 parent 5b95018 commit e66d1f0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ jobs:
9090
shell: bash
9191
# virtual environment is automatically activated
9292
run: |
93-
cd ..
9493
uv run python -c "import pyogrio; print(f'GDAL version: {pyogrio.__gdal_version__}\nGEOS version: {pyogrio.__gdal_geos_version__}')"
9594
uv run python -m pytest --pyargs pyogrio.tests -v
9695
@@ -177,14 +176,12 @@ jobs:
177176
with:
178177
fetch-depth: 0
179178

180-
- name: Cache vcpkg
181-
uses: actions/cache@v4
182-
id: vcpkgcache
179+
- name: Export GitHub Actions cache environment variables
180+
uses: actions/github-script@v7
183181
with:
184-
path: |
185-
${{ matrix.vcpkg_cache }}
186-
# bump the last digit to avoid using previous build cache
187-
key: ${{ matrix.os }}-${{ matrix.arch }}-vcpkg-gdal3.9.2-cache1
182+
script: |
183+
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
184+
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
188185
189186
# MacOS build requires aclocal, which is part of automake, but appears
190187
# to be missing in default image
@@ -207,6 +204,7 @@ jobs:
207204
- name: Install GDAL
208205
env:
209206
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
207+
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
210208
shell: bash
211209
run: |
212210
vcpkg install --overlay-triplets=./ci/custom-triplets --feature-flags="versions,manifests" --x-manifest-root=./ci --x-install-root=$VCPKG_INSTALLATION_ROOT/installed --debug

0 commit comments

Comments
 (0)