44 lines
981 B
YAML
44 lines
981 B
YAML
name: ci
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
env:
|
|
RUSTFLAGS: -Dwarnings
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
args:
|
|
- ""
|
|
- "--features std"
|
|
- "--features nightly"
|
|
- "--features nightly,std"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@nightly
|
|
- run: cargo test --no-default-features ${{ matrix.args }}
|
|
clippy:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
args:
|
|
- ""
|
|
- "--features std"
|
|
- "--features nightly"
|
|
- "--features nightly,std"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@nightly
|
|
with:
|
|
components: clippy
|
|
- run: cargo clippy --no-default-features ${{ matrix.args }}
|
|
|
|
docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@nightly
|
|
- run: cargo rustdoc --all-features
|