Skip to content

Commit ca72f47

Browse files
committed
chore: align CI workflow with other projects
1 parent 63f5bc8 commit ca72f47

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,15 @@ jobs:
4343
- name: Cargo fmt
4444
run: cargo fmt --check
4545

46-
- name: Cargo clippy
47-
run: cargo clippy --all-targets -- -D warnings
46+
- name: Cargo build
47+
run: cargo build --release
4848

4949
- name: Cargo test
5050
run: cargo test
5151

52+
- name: Cargo clippy
53+
run: cargo clippy --all-targets -- -D warnings
54+
5255
publish-check:
5356
name: Publish Check (dry-run)
5457
runs-on: ubuntu-latest
@@ -64,6 +67,12 @@ jobs:
6467
path: ~/.cargo/registry
6568
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
6669

70+
- name: Cache cargo index
71+
uses: actions/cache@v4
72+
with:
73+
path: ~/.cargo/git
74+
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
75+
6776
- name: Cargo publish dry-run
6877
run: cargo publish --dry-run
6978

0 commit comments

Comments
 (0)