Skip to content

Commit

Permalink
♻️ Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Oct 22, 2023
1 parent 04d56c9 commit 19824f1
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
name: Rust CI
on: [push]

env:
CARGO_TERM_COLOR: always
TARGET: aarch64-unknown-linux-gnu

jobs:
cargo-tests:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install xsltproc
run: sudo apt-get install -y xsltproc
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -17,14 +23,17 @@ jobs:
- uses: Swatinem/rust-cache@v1
with:
cache-on-failure: true
- uses: taiki-e/install-action@nextest
- name: cargo test
run: cargo test --all --all-features
run: cargo nextest run --all --all-features --target ${{ env.TARGET }}
cargo-lint:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install xsltproc
run: sudo apt-get install -y xsltproc
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -38,7 +47,7 @@ jobs:
- name: cargo fmt
run: cargo +nightly fmt --all -- --check
- name: cargo clippy
run: cargo +nightly clippy --all --all-features -- -D warnings
run: cargo +nightly clippy --all --all-features --target ${{ env.TARGET }} -- -D warnings
cargo-build:
runs-on: ubuntu-latest
timeout-minutes: 20
Expand Down Expand Up @@ -66,6 +75,8 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install xsltproc
run: sudo apt-get install -y xsltproc
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -80,5 +91,5 @@ jobs:
continue-on-error: true
run: RUSTDOCFLAGS="-D warnings" cargo doc --all --no-deps --all-features --document-private-items
- name: doctest
run: cargo test --doc --all --all-features
run: cargo test --doc --all --all-features --target ${{ env.TARGET }}

0 comments on commit 19824f1

Please sign in to comment.