Skip to content

Fix nightly build / simplify no_std #60

Fix nightly build / simplify no_std

Fix nightly build / simplify no_std #60

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
name: CI
jobs:
all-succeeded:
name: All Succeeded
if: always()
runs-on: ubuntu-latest
needs:
- test
- lint
steps:
- name: Check if all jubs succeeded
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
test:
name: Test
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
strategy:
matrix:
rust:
- stable
- nightly
flags:
- ""
- "--no-default-features"
steps:
- uses: actions/checkout@v3
name: Checkout
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
name: Install Rust Toolchain
- run: cargo test ${{ matrix.flags }}
- run: cargo doc
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout
- uses: dtolnay/rust-toolchain@stable
name: Install Rust Toolchain
with:
components: rustfmt, clippy
- run: cargo fmt --all -- --check
- run: cargo clippy -- -D warnings