Use once_cell
instead of lazy_static
#32
Workflow file for this run
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: | |
fmt: | |
name: rustfmt check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: default | |
- run: cargo fmt --all -- --check | |
lint: | |
name: clippy lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
- beta | |
- nightly | |
stability: | |
- "" | |
- "--release" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{matrix.toolchain}} | |
profile: default | |
default: true | |
- name: cargo clippy | |
run: "cargo clippy --all ${{matrix.stability}} $([ ${{matrix.toolchain}} == nightly] || echo --features stable)" |