Skip to content

Commit 2720f0d

Browse files
committed
FIX | workflow caching
1 parent d298b8e commit 2720f0d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/conan_build_and_test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,26 @@ jobs:
4646
run: echo "$HOME/.conan2"
4747

4848
- name: Cache Conan Dependencies (Ubuntu Latest)
49-
if: ${{ runner.os == 'ubuntu-latest' }}
49+
if: ${{ matrix.os == 'ubuntu-latest' }}
5050
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)
57-
if: ${{ runner.os == 'windows-latest' }}
57+
if: ${{ matrix.os == 'windows-latest' }}
5858
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: ${{ runner.os == 'ubuntu-latest' && steps.cache-conan-ubuntu.outputs.cache-hit != 'true' }}
64+
- if: ${{ matrix.os == 'ubuntu-latest' && steps.cache-conan-ubuntu.outputs.cache-hit != 'true' }}
6565
name: Create default Conan profile
6666
run: conan profile detect --force
6767

68-
- if: ${{ runner.os == 'windows-latest' && steps.cache-conan-windows.outputs.cache-hit != 'true' }}
68+
- if: ${{ matrix.os == 'windows-latest' && steps.cache-conan-windows.outputs.cache-hit != 'true' }}
6969
name: Create default Conan profile
7070
run: conan profile detect --force
7171

0 commit comments

Comments
 (0)