Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 16 additions & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions-rs/toolchain@v1

- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

- run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
Expand All @@ -33,29 +31,27 @@ jobs:
cargo-args: ""
steps:
- uses: actions/checkout@v6
- uses: actions-rs/toolchain@v1

- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
components: clippy
- uses: actions-rs/cargo@v1
with:
toolchain: ${{ matrix.toolchain }}
command: clippy
args: ${{ matrix.cargo-args }} -- -D warnings

- run: "cargo clippy ${{ matrix.cargo-args }} -- -D warnings"
package:
name: Cargo package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions-rs/toolchain@v1

- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: package

- name: Package
run: cargo package
build_and_test:
name: Build and test
runs-on: ubuntu-latest
Expand Down