Skip to content

No std

No std #209

Workflow file for this run

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