Fix a permanently held lock. #96
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: Rust CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ matrix.rust == 'nightly' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
rust: | |
- stable | |
- beta | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
components: rustfmt | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release --all-features -v | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --all-features -v | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
# TODO enable security audit once the lib deps are updated. | |
# - name: Security audit | |
# uses: actions-rs/audit-check@v1 | |
# with: | |
# token: ${{ secrets.GITHUB_TOKEN }} |