Skip to content

Commit b5739bb

Browse files
add more caching
1 parent ebc5216 commit b5739bb

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,19 @@ jobs:
168168
cache: "pip"
169169
python-version: 3.x
170170

171+
- uses: actions/cache@v4
172+
with:
173+
path: |
174+
~/.cargo/bin/
175+
~/.cargo/registry/index/
176+
~/.cargo/registry/cache/
177+
~/.cargo/git/db/
178+
target/
179+
key: ${{ runner.os }}-cargo-wheels-${{ matrix.platform.target }}-${{ hashFiles('**/Cargo. lock') }}
180+
restore-keys: |
181+
${{ runner.os }}-cargo-wheels-${{ matrix.platform.target }}-
182+
${{ runner.os }}-cargo-wheels-
183+
171184
- name: Build wheels
172185
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380
173186
with:
@@ -205,6 +218,19 @@ jobs:
205218
cache: "pip"
206219
python-version: 3.x
207220

221+
- uses: actions/cache@v4
222+
with:
223+
path: |
224+
~/.cargo/bin/
225+
~/.cargo/registry/index/
226+
~/.cargo/registry/cache/
227+
~/.cargo/git/db/
228+
target/
229+
key: ${{ runner.os }}-cargo-wheels-${{ matrix.platform.target }}-${{ hashFiles('**/Cargo. lock') }}
230+
restore-keys: |
231+
${{ runner.os }}-cargo-wheels-${{ matrix.platform.target }}-
232+
${{ runner.os }}-cargo-wheels-
233+
208234
- name: Build wheels
209235
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380
210236
with:
@@ -284,6 +310,19 @@ jobs:
284310
cache: "pip"
285311
python-version: 3.x
286312

313+
- uses: actions/cache@v4
314+
with:
315+
path: |
316+
~/.cargo/bin/
317+
~/.cargo/registry/index/
318+
~/.cargo/registry/cache/
319+
~/.cargo/git/db/
320+
target/
321+
key: ${{ runner.os }}-cargo-wheels-${{ matrix.platform.target }}-${{ hashFiles('**/Cargo. lock') }}
322+
restore-keys: |
323+
${{ runner.os }}-cargo-wheels-${{ matrix.platform.target }}-
324+
${{ runner.os }}-cargo-wheels-
325+
287326
- name: Build wheels
288327
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380
289328
with:

0 commit comments

Comments
 (0)