switch to socialism #131
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: | |
push: | |
pull_request: | |
jobs: | |
doc: | |
name: doc | |
runs-on: ubuntu-latest | |
env: | |
RUSTDOCFLAGS: "-D warnings" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: doc | |
args: --no-deps | |
test-64: | |
name: test-64 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
opt: ["", "--release"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --lib ${{ matrix.opt }} | |
test-32: | |
name: test-32 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
opt: ["", "--release"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
use-cross: true | |
command: test | |
args: --lib ${{ matrix.opt }} --target i686-unknown-linux-gnu --features native-tls-vendored | |
audit: | |
name: audit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- run: cargo install cargo-audit | |
- run: cargo generate-lockfile | |
- run: cargo audit --deny warnings | |
no-std: | |
name: no-std | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
opt: ["", "--release"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
use-cross: true | |
command: build | |
args: --lib --no-default-features ${{ matrix.opt }} --target thumbv6m-none-eabi | |
min-std: | |
name: min-std | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
opt: ["", "--release"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --lib --no-default-features ${{ matrix.opt }} --features std |