Skip to content

Commit

Permalink
fix(ci): Setup std / no_std jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
bengreenier committed Nov 4, 2023
1 parent a863c23 commit c9d0b19
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/pr_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,27 @@ env:
CARGO_TERM_COLOR: always

jobs:
build_test_lint:
build_test_lint_std:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Install cargo-all-features
run: cargo install cargo-all-features
- name: Build
run: cargo build-all-features --verbose
run: cargo build-all-features --exclude test_no_std --workspace --verbose
- name: Run tests
run: cargo test-all-features --verbose
run: cargo test-all-features --exclude test_no_std --workspace --verbose
- name: Run clippy
run: cargo clippy --verbose

build_test_lint_no_std:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
# the test_no_std crate requires the nightly toolchain
- uses: dtolnay/rust-toolchain@nightly
- name: Build test_no_std
run: cd crates/test_no_std && cargo +nightly build --verbose

0 comments on commit c9d0b19

Please sign in to comment.