Skip to content

Commit

Permalink
CI: Remove deprecated actions-rs and add cargo doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Jun 11, 2024
1 parent 977c10a commit f1099c2
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,30 @@ jobs:
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --workspace --all-targets
run: cargo build --workspace --all-targets

fmt:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

clippy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets -- -Dwarnings
run: cargo clippy --workspace --all-targets -- -Dwarnings

doc:
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v4
- name: Cargo doc
run: cargo doc --workspace

0 comments on commit f1099c2

Please sign in to comment.