Skip to content

Commit

Permalink
build: specify rust-version and keep lock file
Browse files Browse the repository at this point in the history
This is helpful with the msrv aware dependency resolver (available since Rust 1.84, default with edition 2024).
  • Loading branch information
EdJoPaTo committed Jan 27, 2025
1 parent 04710cc commit 305c9da
Show file tree
Hide file tree
Showing 5 changed files with 2,433 additions and 25 deletions.
19 changes: 0 additions & 19 deletions .github/dependabot.yml

This file was deleted.

8 changes: 3 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ name: Rust

on:
push:
branches-ignore: ["dependabot/**"]
pull_request:
workflow_dispatch:
schedule:
# Check if it works with current dependencies
- cron: "32 2 * * 3" # weekly on Wednesday 2:32 UTC

jobs:
rustfmt:
Expand Down Expand Up @@ -54,6 +50,7 @@ jobs:
toolchain:
- stable
- beta
- "1.75"
os:
- ubuntu-latest
- macos-latest
Expand Down Expand Up @@ -90,6 +87,7 @@ jobs:
- stable
- beta
- nightly
- "1.75"
os:
- ubuntu-latest
- macos-latest
Expand Down Expand Up @@ -162,7 +160,7 @@ jobs:
tool: cross

- uses: actions/checkout@v4
- run: cargo fetch
- run: cargo fetch --locked
- uses: actions/cache@v4
with:
key: release-${{ matrix.triple }}-${{ steps.rust.outputs.cachekey }}-${{ hashFiles('**/Cargo.*') }}
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/target/
**/*.rs.bk
Cargo.lock
Loading

0 comments on commit 305c9da

Please sign in to comment.