Skip to content

Commit

Permalink
Use nextest
Browse files Browse the repository at this point in the history
  • Loading branch information
theRookieCoder committed Dec 27, 2024
1 parent c52e631 commit 400015a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
- name: Create `out/`
Expand All @@ -35,16 +36,20 @@ jobs:
uses: dtolnay/rust-toolchain@nightly
with:
targets: aarch64-apple-darwin, x86_64-apple-darwin
components: clippy

- name: Install Rust for Windows
if: matrix.os == 'windows-latest'
uses: dtolnay/rust-toolchain@nightly
with:
components: clippy

- name: Install Rust for Linux
if: matrix.os == 'ubuntu-latest'
uses: dtolnay/rust-toolchain@nightly
with:
targets: x86_64-pc-windows-gnu, x86_64-unknown-linux-musl, aarch64-unknown-linux-musl
components: clippy

- name: Install Linux dependencies
if: matrix.os == 'ubuntu-latest'
Expand All @@ -56,11 +61,14 @@ jobs:
- name: Install Rust cache
uses: Swatinem/rust-cache@v2

- name: Install nextest
uses: taiki-e/install-action@nextest

- name: Lint code
run: cargo clippy

- name: Run tests
run: cargo+nightly test --no-default-features
run: cargo nextest run --no-default-features --no-fail-fast

- name: Build macOS Intel
if: matrix.os == 'macos-latest'
Expand Down

0 comments on commit 400015a

Please sign in to comment.