Skip to content

Commit 99df9a4

Browse files
committed
FIX | workflow caching
1 parent 5fa1211 commit 99df9a4

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/conan_build_and_test.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,22 @@ jobs:
4545
- name: Conan Directory
4646
run: echo "$HOME/.conan2"
4747

48-
- name: Cache Conan Dependencies
48+
- name: Cache Conan Dependencies (Ubuntu Latest)
49+
if: ${{ runner.os == 'ubuntu-latest' }}
4950
id: cache-conan
5051
uses: actions/cache@v4
5152
with:
52-
path: $HOME/.conan2
53+
path: /home/runner/.conan2
5354
key: conan-${{ runner.os }}-${{ matrix.c_compiler }}
55+
56+
- name: Cache Conan Dependencies (Windows Latest)
57+
if: ${{ runner.os == 'windows-latest' }}
58+
id: cache-conan
59+
uses: actions/cache@v4
60+
with:
61+
path: C:\Users\runneradmin\.conan2
62+
key: conan-${{ runner.os }}-${{ matrix.c_compiler }}
63+
5464
- if: ${{steps.cache-conan.outputs.cache-hit != 'true'}}
5565
name: Create default Conan profile
5666
run: conan profile detect --force

0 commit comments

Comments
 (0)