Skip to content

Commit

Permalink
Update CI (#25)
Browse files Browse the repository at this point in the history
* ci: Update `actions/checkout` to v4.

* ci: Stop using the unmaintained actions-rs actions.

Replace the cargo action with just running cargo directly and
replace the toolchain action with another (that was already used
for the MSRV job).
  • Loading branch information
waywardmonkeys authored Jul 22, 2024
1 parent b0c1d4f commit a071ce8
Showing 1 changed file with 11 additions and 37 deletions.
48 changes: 11 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,59 +10,33 @@ jobs:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets -- -D warnings
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo clippy --workspace --all-targets -- -D warnings

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo fmt --all -- --check

doc:
name: Build documentation
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Build documentation
uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps --workspace --all-features --document-private-items
run: cargo doc --no-deps --workspace --all-features --document-private-items

check_msrv:
name: Check MSRV (1.60)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- uses: actions-rs/cargo@v1
with:
command: check
args: --workspace --all-features
- run: cargo check --workspace --all-features

0 comments on commit a071ce8

Please sign in to comment.