Skip to content

Commit

Permalink
update CI: minimal crates and MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
flub committed Dec 4, 2024
1 parent 19adeff commit 79dcee9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 9 deletions.
38 changes: 29 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ concurrency:
cancel-in-progress: true

env:
RUST_BACKTRACE: "1"
RUSTFLAGS: "-Dwarnings"
RUSTDOCFLAGS: "-Dwarnings"
RUSTC_WRAPPER: "sccache"
SCCACHE_GHA_ENABLED: "true"
MSRV: "1.76"
RUST_BACKTRACE: "1"
RUSTFLAGS: "-Dwarnings"
RUSTDOCFLAGS: "-Dwarnings"
RUSTC_WRAPPER: "sccache"
SCCACHE_GHA_ENABLED: "true"

jobs:
lints:
Expand All @@ -23,7 +24,7 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: mozilla-actions/[email protected].3
- uses: mozilla-actions/[email protected].6
- run: cargo fmt --check
- run: cargo clippy --no-deps
- run: cargo doc --no-deps --document-private-items
Expand All @@ -37,9 +38,28 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: mozilla-actions/[email protected].3
- uses: mozilla-actions/[email protected].6
- uses: taiki-e/install-action@nextest
- run: cargo test
- run: cargo nextest run


minimal-crates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: mozilla-actions/[email protected]
- name: cargo check
run: |
rm -f Cargo.lock
cargo +nightly check -Z minimal-versions
msrv:
runs-on: ubuntu-lates
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.MSRV }}
- uses: mozilla-actions/[email protected]
- name: Check MSRV
run: |
cargo +$MSRV check
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ license = "MIT OR Apache-2.0"
keywords = ["test", "temp", "temporary", "directory"]
categories = ["development-tools::testing", "filesystem"]

# Sadly this also needs to be updated in .github/workflows/ci.yml
rust-version = "1.76"

[dependencies]
anyhow = "1"
backtrace = "0.3.55"
Expand Down

0 comments on commit 79dcee9

Please sign in to comment.