Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NightEule5 committed Aug 1, 2024
1 parent 02afe5b commit 79943e1
Showing 1 changed file with 28 additions and 16 deletions.
44 changes: 28 additions & 16 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,38 @@ env:

jobs:
build:

name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: rustup update nightly
- name: Build
run: cargo build --verbose
- name: Build no_std
- name: Build with no_std
run: cargo build --verbose --no-default-features
- name: Build with nightly features
run: cargo build --verbose --features nightly
- name: Run Clippy
run: cargo clippy --verbose
- name: Run Clippy on no_std
run: cargo clippy --verbose --no-default-features
- name: Run Clippy with nightly features
run: cargo clippy --verbose --features nightly
- name: Run tests
run: cargo test --verbose
- name: Run tests on no_std
run: cargo test --verbose --no-default-features
- name: Run tests with nightly features
run: cargo test --verbose --features nightly
run: cargo +nightly build --verbose --features nightly
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update nightly && rustup component add --toolchain nightly-x86_64-unknown-linux-gnu clippy
- name: Lint
run: cargo clippy --verbose
- name: Lint with no_std
run: cargo clippy --verbose --no-default-features
- name: Lint with nightly features
run: cargo +nightly clippy --verbose --features nightly
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update nightly
- name: Run tests
run: cargo test --verbose
- name: Run tests on no_std
run: cargo test --verbose --no-default-features
- name: Run tests with nightly features
run: cargo +nightly test --verbose --features nightly

0 comments on commit 79943e1

Please sign in to comment.