No std #209
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache Rust | |
uses: Swatinem/rust-cache@v2 | |
with: | |
save-if: false | |
shared-key: base | |
- name: Install rustfmt and clippy | |
run: | | |
rustup component add rustfmt clippy | |
- name: Check for license headers | |
run: ./ci/lintHeaders.sh | |
- name: cargo fmt | |
run: | | |
cargo fmt --all -- --check | |
- name: cargo clippy | |
run: | | |
cargo clippy --all-targets -- -D warnings | |
test: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache Rust | |
uses: Swatinem/rust-cache@v2 | |
with: | |
save-if: false | |
shared-key: base | |
- name: Install cargo-all-features | |
run: | | |
cargo install --locked cargo-all-features | |
- name: Run tests (debug mode) | |
run: | | |
cargo test-all-features | |
- name: Run tests (release mode) | |
run: | | |
cargo test-all-features --release |