Update cache strategy

This commit is contained in:
Changhua 2024-11-03 19:14:22 +08:00
parent f41b248023
commit 03a384fbe2

View File

@ -39,16 +39,23 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install grpcio-tools==1.48.2 pip install grpcio-tools==1.48.2
- name: 设置缓存 - name: 设置 vcpkg 缓存
id: cache-vcpkg id: cache-vcpkg-tools
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: | path: C:/Tools/vcpkg
C:/Tools/vcpkg key: ${{ runner.os }}-vcpkg-tools-${{ hashFiles('WeChatFerry/vcpkg.json') }}
${{ github.workspace }}/WeChatFerry/vcpkg_installed
key: ${{ runner.os }}-vcpkg-${{ hashFiles('WeChatFerry/vcpkg.json') }}
restore-keys: | restore-keys: |
${{ runner.os }}-vcpkg- ${{ runner.os }}-vcpkg-tools-
- name: 设置 vcpkg_installed 缓存
id: cache-vcpkg-installed
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/WeChatFerry/vcpkg_installed
key: ${{ runner.os }}-vcpkg-installed-${{ hashFiles('WeChatFerry/vcpkg.json') }}
restore-keys: |
${{ runner.os }}-vcpkg-installed-
- name: 安装 vcpkg 并初始化依赖项 - name: 安装 vcpkg 并初始化依赖项
run: | run: |