Skip to content

Commit 08b428d

Browse files
authored
build(workflow): try to make Rust build leverage cache (#403)
* build(workflow): set Rust cache key * build: add `Cargo.lock` to the repo as it's released as binary * chore: update job name
1 parent 60d7081 commit 08b428d

File tree

3 files changed

+5080
-5
lines changed

3 files changed

+5080
-5
lines changed

.github/workflows/_test.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ env:
77
CARGO_TERM_COLOR: always
88

99
jobs:
10-
rust:
10+
build-test:
1111
strategy:
1212
matrix:
1313
python-version: [3.11, 3.13]
@@ -18,7 +18,9 @@ jobs:
1818

1919
- run: rustup toolchain install stable --profile minimal
2020
- name: Rust Cache
21-
uses: Swatinem/[email protected]
21+
uses: Swatinem/rust-cache@v2
22+
with:
23+
key: ${{ runner.os }}-rust-${{ matrix.python-version }}
2224
- name: Rust build
2325
run: cargo build --verbose
2426
- name: Rust tests

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ dist/
1414

1515
.DS_Store
1616

17-
# Lock files for dependencies should be ignored for library
18-
/Cargo.lock
19-
2017
*.egg-info/
2118

2219
# Output of `cocoindex eval`

0 commit comments

Comments
 (0)