Skip to content

Commit 97fe8d1

Browse files
authored
fix(ci): MacOS runner jobs fail on cache keys (#56)
* fix(ci): skip cache jobs on buggy macOS runners
1 parent 5f1f96a commit 97fe8d1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
with:
6161
path: |
6262
.venv
63-
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
63+
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
6464
restore-keys: |
6565
${{ runner.os }}-pip-
6666
@@ -171,6 +171,7 @@ jobs:
171171
run: cargo install cross
172172

173173
- name: Set up cargo cache
174+
if: runner.os != 'macOS'
174175
uses: actions/cache@v4
175176
with:
176177
path: |
@@ -179,7 +180,7 @@ jobs:
179180
~/.cargo/registry/cache/
180181
~/.cargo/git/db/
181182
target/
182-
key: ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('**/Cargo.lock') }}
183+
key: ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('Cargo.lock') }}
183184
restore-keys: ${{ runner.os }}-${{ matrix.target }}-cargo-
184185

185186
- name: Set up Python
@@ -188,11 +189,12 @@ jobs:
188189
python-version: "3.14t"
189190

190191
- name: Cache python dependencies
192+
if: runner.os != 'macOS'
191193
uses: actions/cache@v4
192194
with:
193195
path: |
194196
.venv
195-
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
197+
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
196198
restore-keys: |
197199
${{ runner.os }}-pip-
198200
@@ -317,11 +319,12 @@ jobs:
317319
merge-multiple: true
318320

319321
- name: Cache python dependencies
322+
if: runner.os != 'macOS'
320323
uses: actions/cache@v4
321324
with:
322325
path: |
323326
.venv
324-
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}
327+
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
325328
restore-keys: |
326329
${{ runner.os }}-pip-${{ matrix.python-version }}-
327330
@@ -432,7 +435,7 @@ jobs:
432435
with:
433436
path: |
434437
.venv
435-
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
438+
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
436439
restore-keys: |
437440
${{ runner.os }}-pip-
438441

0 commit comments

Comments
 (0)