Skip to content

Commit b88f636

Browse files
committed
Change cache path
1 parent 8c277a3 commit b88f636

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ concurrency:
1717
env:
1818
LLVM_VER: 17
1919
PYTHON_VER: 3.11
20-
VCPKG_BINARY_SOURCES: clear;files,/root/vcpkg-binary-cache,readwrite
2120

2221
jobs:
2322
build:
@@ -64,19 +63,20 @@ jobs:
6463
echo "CXX=$(which clang++-$LLVM_VER)" >> $GITHUB_ENV
6564
echo "CFLAGS=-g0 --ld-path=$(which ld.lld-$LLVM_VER) -flto" >> $GITHUB_ENV
6665
echo "CXXFLAGS=-g0 --ld-path=$(which ld.lld-$LLVM_VER) -flto" >> $GITHUB_ENV
66+
echo "VCPKG_BINARY_SOURCES=clear;files,$GITHUB_WORKSPACE/vcpkg-binary-cache,readwrite" >> $GITHUB_ENV
6767
6868
- name: Setup vcpkg
6969
run: |
70-
mkdir -p /root/vcpkg-binary-cache
70+
mkdir -p $GITHUB_WORKSPACE/vcpkg-binary-cache
7171
git clone https://github.com/microsoft/vcpkg $HOME/vcpkg
7272
$HOME/vcpkg/bootstrap-vcpkg.sh
7373
7474
- name: Cache vcpkg binaries
7575
id: cache-vcpkg
7676
uses: actions/cache@v4
7777
with:
78-
path: /root/vcpkg-binary-cache
79-
key: ${{ runner.os }}-${{ hashFiles('/root/vcpkg-binary-cache/**/*') }}
78+
path: $GITHUB_WORKSPACE/vcpkg-binary-cache
79+
key: ${{ runner.os }}-${{ hashFiles('vcpkg-binary-cache/**/*') }}
8080

8181
- name: Build
8282
run: |

0 commit comments

Comments
 (0)