Skip to content

Commit

Permalink
Add Cargo.lock to the repo to fix flaky CI
Browse files Browse the repository at this point in the history
Previously, CI was breaking "randomly" every time a dependency moved its MSRV beyond whatever is used to run in CI. To fix that, just commit the lockfile to git so that CI runs with a fixed set of dependencies. Also adds my own `rust-cache` for good measure :-)
  • Loading branch information
Swatinem committed Feb 20, 2024
1 parent faa4409 commit 93aa910
Show file tree
Hide file tree
Showing 4 changed files with 615 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.60.0
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.72.0
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo fmt -- --check
- run: cargo test
- run: cargo bench
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
target
Cargo.lock
Loading

0 comments on commit 93aa910

Please sign in to comment.