Skip to content

Commit d298b8e

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

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/conan_build_and_test.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,25 @@ jobs:
4747

4848
- name: Cache Conan Dependencies (Ubuntu Latest)
4949
if: ${{ runner.os == 'ubuntu-latest' }}
50-
id: cache-conan
50+
id: cache-conan-ubuntu
5151
uses: actions/cache@v4
5252
with:
5353
path: /home/runner/.conan2
5454
key: conan-${{ runner.os }}-${{ matrix.c_compiler }}
5555

5656
- name: Cache Conan Dependencies (Windows Latest)
5757
if: ${{ runner.os == 'windows-latest' }}
58-
id: cache-conan
58+
id: cache-conan-windows
5959
uses: actions/cache@v4
6060
with:
6161
path: C:\Users\runneradmin\.conan2
6262
key: conan-${{ runner.os }}-${{ matrix.c_compiler }}
6363

64-
- if: ${{steps.cache-conan.outputs.cache-hit != 'true'}}
64+
- if: ${{ runner.os == 'ubuntu-latest' && steps.cache-conan-ubuntu.outputs.cache-hit != 'true' }}
65+
name: Create default Conan profile
66+
run: conan profile detect --force
67+
68+
- if: ${{ runner.os == 'windows-latest' && steps.cache-conan-windows.outputs.cache-hit != 'true' }}
6569
name: Create default Conan profile
6670
run: conan profile detect --force
6771

0 commit comments

Comments
 (0)