Skip to content

Commit 605bf4d

Browse files
authored
Add Rust CI improvements (#206)
* Add Rust CI improvements * Update Lockfile * Add --locked to clippy and test, remove lockfile validation * Pin git dependencies with rev for locked CI * lockfile update
1 parent 5276d11 commit 605bf4d

4 files changed

Lines changed: 116 additions & 82 deletions

File tree

.github/workflows/rust.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ jobs:
5353
~/.cargo/registry
5454
~/.cargo/git
5555
target
56-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
56+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml') }}
5757

5858
- name: Check formatting
5959
run: cargo fmt --all -- --check
6060

6161
- name: Run clippy
62-
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
62+
run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
6363
env:
6464
RUSTC_WRAPPER: sccache
6565

@@ -88,10 +88,10 @@ jobs:
8888
~/.cargo/registry
8989
~/.cargo/git
9090
target
91-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
91+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml') }}
9292

9393
- name: Run all workspace tests
94-
run: cargo test --workspace
94+
run: cargo test --workspace --locked
9595
env:
9696
RUSTC_WRAPPER: sccache
9797

@@ -108,4 +108,4 @@ jobs:
108108
uses: docker/setup-buildx-action@v3
109109

110110
- name: Build Docker image
111-
run: docker build -f asap-query-engine/Dockerfile -t sketchdb-queryengine-rust:latest .
111+
run: docker build -f asap-query-engine/Dockerfile -t sketchdb-queryengine-rust:latest .

0 commit comments

Comments
 (0)