Skip to content

Commit

Permalink
ci: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
QEDK committed Apr 24, 2024
1 parent 8cb1c1a commit aef54a6
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,25 @@ jobs:
- nightly

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt

- uses: actions-rs/cargo@v1
- uses: Swatinem/rust-cache@v2
with:
command: build
args: --release --all-features -v
cache-on-failure: true

- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features -v
- name: build
run: cargo build --release --all-features -v

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

- name: fmt
run: cargo fmt --all -- --check

- name: Security audit
uses: actions-rs/audit-check@v1
Expand Down

0 comments on commit aef54a6

Please sign in to comment.