Skip to content

Commit

Permalink
ci: bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
SichangHe committed Sep 15, 2024
1 parent 0fd32a2 commit fd8461b
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,47 +14,38 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: dtolnay/rust-toolchain@stable
- name: Cache Rust registry based on toml file
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cargo/registry/cache/
key: rust-${{ hashFiles('Cargo.toml') }}
- uses: mozilla-actions/[email protected].3
key: rust-${{ hashFiles('Cargo.toml', 'mdbook_fork4ls/Cargo.toml', 'mdbook_incremental_preview/Cargo.toml') }}
- uses: mozilla-actions/[email protected].5
- run: cargo test --workspace

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: dtolnay/rust-toolchain@stable
- name: Cache Rust registry based on toml file
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cargo/registry/cache/
key: rust-${{ hashFiles('Cargo.toml') }}
- uses: mozilla-actions/[email protected].3
key: rust-${{ hashFiles('Cargo.toml', 'mdbook_fork4ls/Cargo.toml', 'mdbook_incremental_preview/Cargo.toml') }}
- uses: mozilla-actions/[email protected].5
- run: cargo clippy --workspace

rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Cache Rust registry based on toml file
uses: actions/cache@v3
with:
path: ~/.cargo/registry/cache/
key: rust-${{ hashFiles('Cargo.toml') }}
- uses: mozilla-actions/[email protected]
- run: cargo fmt -- --check

0 comments on commit fd8461b

Please sign in to comment.