Skip to content

Commit

Permalink
Adjust CI/CD to use --locked
Browse files Browse the repository at this point in the history
  • Loading branch information
dimo414 committed Sep 27, 2024
1 parent b7b0729 commit bf1b3f9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ jobs:
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --all-features
args: --locked --all-targets --all-features
- name: Check
run: cargo check --all-targets --verbose
run: cargo check --locked --all-targets --verbose
- name: Check (features=debug)
run: cargo check --all-targets --verbose --features debug
run: cargo check --locked --all-targets --verbose --features debug
- name: Check Documentation
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --no-deps --document-private-items
run: cargo doc --locked --no-deps --document-private-items
- name: Tests
run: cargo test --verbose
run: cargo test --locked --verbose
- name: Tests (features=debug)
run: cargo test --verbose --features debug
run: cargo test --locked --verbose --features debug
- name: Benchmark
run: |
cargo build --release
cargo build --locked --release
./benchmark.sh --bkt=target/release/bkt -- --ttl=1m -- sleep 1
CD:
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
with:
use-cross: ${{ matrix.arch.use-cross }}
command: build
args: --release --target=${{ matrix.arch.target }}
args: --locked --release --target=${{ matrix.arch.target }}

- name: Upload package artifact
uses: actions/upload-artifact@master
Expand Down

0 comments on commit bf1b3f9

Please sign in to comment.