mirror of
https://github.com/delibae/claude-prism.git
synced 2026-08-28 05:14:59 +00:00
fix: resolve vcpkg cache path via shell env before cache steps
${{ env.VCPKG_INSTALLATION_ROOT }} may not resolve in 'with' context.
Set path explicitly via GITHUB_ENV in a shell step first.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7ce175cd63
commit
740ea8cbe4
1 changed files with 9 additions and 4 deletions
13
.github/workflows/build-desktop.yml
vendored
13
.github/workflows/build-desktop.yml
vendored
|
|
@ -51,13 +51,18 @@ jobs:
|
|||
echo "CXXFLAGS=-I$(brew --prefix)/include -std=c++17" >> $GITHUB_ENV
|
||||
echo "CFLAGS=-I$(brew --prefix)/include" >> $GITHUB_ENV
|
||||
|
||||
- name: Set vcpkg path
|
||||
if: matrix.label == 'windows'
|
||||
shell: bash
|
||||
run: echo "VCPKG_INSTALLED=$VCPKG_INSTALLATION_ROOT/installed" >> $GITHUB_ENV
|
||||
|
||||
- name: Restore vcpkg cache
|
||||
if: matrix.label == 'windows'
|
||||
id: vcpkg-cache
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: ${{ env.VCPKG_INSTALLATION_ROOT }}/installed
|
||||
key: vcpkg-win-static-release-harfbuzz-fontconfig-freetype-icu-v1
|
||||
path: ${{ env.VCPKG_INSTALLED }}
|
||||
key: vcpkg-win-v2
|
||||
|
||||
- name: Install Windows dependencies (vcpkg)
|
||||
if: matrix.label == 'windows' && steps.vcpkg-cache.outputs.cache-hit != 'true'
|
||||
|
|
@ -74,8 +79,8 @@ jobs:
|
|||
if: matrix.label == 'windows' && steps.vcpkg-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: ${{ env.VCPKG_INSTALLATION_ROOT }}/installed
|
||||
key: vcpkg-win-static-release-harfbuzz-fontconfig-freetype-icu-v1
|
||||
path: ${{ env.VCPKG_INSTALLED }}
|
||||
key: vcpkg-win-v2
|
||||
|
||||
- name: Set Windows build environment
|
||||
if: matrix.label == 'windows'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue