Skip to content

Commit 7105e00

Browse files
committed
Refine dependency caching in CI workflow for improved cross-platform support
- Added OS-specific `Cache dependencies` steps for Windows and Ubuntu. - Adjusted cache paths to align with platform-specific build environments.
1 parent f235198 commit 7105e00

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/workflow.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,27 @@ jobs:
144144
steps:
145145
- uses: actions/checkout@v3
146146

147-
- name: Cache dependencies
147+
- name: Cache dependencies (Windows)
148+
if: runner.os == 'Windows'
148149
uses: actions/cache@v3
149150
with:
150151
path: |
151-
~/.cache/pip
152-
~/.vcpkg
153152
${{ env.VCPKG_INSTALLATION_ROOT }}
154153
key: ${{ runner.os }}-deps-${{ hashFiles('**/CMakeLists.txt') }}
155154
restore-keys: |
156155
${{ runner.os }}-deps-
157156
157+
- name: Cache dependencies (Ubuntu)
158+
if: runner.os == 'Linux'
159+
uses: actions/cache@v3
160+
with:
161+
path: |
162+
${{ github.workspace }}/yaml-cpp/build
163+
${{ github.workspace }}/vulkan-sdk
164+
key: ${{ runner.os }}-deps-${{ hashFiles('**/CMakeLists.txt') }}
165+
restore-keys: |
166+
${{ runner.os }}-deps-
167+
158168
- name: Install dependencies
159169
run: ${{ matrix.deps-install }}
160170

0 commit comments

Comments
 (0)