Skip to content

Commit 560ccdb

Browse files
committed
fix(ci): avoid stale Metal CMake cache paths
Signed-off-by: AlpinDale <alpindale@gmail.com>
1 parent 4dc74a9 commit 560ccdb

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

‎.github/workflows/platform-wheel.yml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ jobs:
175175
fetch-depth: 0
176176

177177
- name: Install build tools
178-
run: brew install protobuf
178+
run: |
179+
brew install ninja protobuf
180+
echo "CMAKE_ARGS=-DCMAKE_MAKE_PROGRAM=$(command -v ninja)" \
181+
>> "$GITHUB_ENV"
179182
180183
- name: Install uv and Python
181184
uses: astral-sh/setup-uv@v7
@@ -191,12 +194,11 @@ jobs:
191194
path: |
192195
.cache/uv
193196
.deps
194-
build
195197
~/.cargo/git
196198
~/.cargo/registry
197199
rust/target
198-
key: metal-build-${{ runner.os }}-${{ github.run_id }}
199-
restore-keys: metal-build-${{ runner.os }}-
200+
key: metal-build-v2-${{ runner.os }}-${{ github.run_id }}
201+
restore-keys: metal-build-v2-${{ runner.os }}-
200202

201203
- name: Install rclone
202204
run: ./.github/scripts/install-rclone.sh "$RUNNER_TEMP/rclone-bin"

‎.github/workflows/release-wheel.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ jobs:
137137
fetch-depth: 0
138138

139139
- name: Install build tools
140-
run: brew install protobuf
140+
run: |
141+
brew install ninja protobuf
142+
echo "CMAKE_ARGS=-DCMAKE_MAKE_PROGRAM=$(command -v ninja)" \
143+
>> "$GITHUB_ENV"
141144
142145
- name: Install uv and Python
143146
uses: astral-sh/setup-uv@v7

0 commit comments

Comments
 (0)