1on: [push, pull_request] 2 3name: ci 4 5jobs: 6 test: 7 name: clippy + tests + docs 8 runs-on: ubuntu-latest 9 steps: 10 - uses: actions/checkout@v2 11 - uses: actions-rs/toolchain@v1 12 with: 13 profile: minimal 14 toolchain: stable 15 override: true 16 17 - name: cargo clippy 18 uses: actions-rs/cargo@v1 19 with: 20 command: clippy 21 args: --workspace --tests --examples --features=std -- -D warnings 22 23 # don't forget the no_std example! 24 - name: cargo clippy (example_no_std) 25 uses: actions-rs/cargo@v1 26 with: 27 command: clippy 28 args: --manifest-path example_no_std/Cargo.toml 29 30 - name: cargo test 31 uses: actions-rs/cargo@v1 32 with: 33 command: test 34 args: --workspace --features=std 35 36 - name: no panics in example_no_std 37 run: ./example_no_std/dump_asm.sh 38 shell: bash 39 40 - name: cargo doc 41 run: cargo doc --workspace --features=std 42 env: 43 RUSTDOCFLAGS: "-Dwarnings" 44 45 rustfmt: 46 name: rustfmt (nightly) 47 runs-on: ubuntu-latest 48 steps: 49 - uses: actions/checkout@v2 50 - uses: actions-rs/toolchain@v1 51 with: 52 profile: minimal 53 toolchain: nightly 54 override: true 55 components: rustfmt 56 - name: cargo +nightly fmt 57 uses: actions-rs/cargo@v1 58 with: 59 command: fmt 60 args: --all -- --check 61 # don't forget the no_std example! 62 - name: cargo +nightly fmt (example_no_std) 63 uses: actions-rs/cargo@v1 64 with: 65 command: fmt 66 args: --manifest-path example_no_std/Cargo.toml 67