Update CI config
This commit is contained in:
parent
2e0881f64d
commit
a23f4dc38e
|
@ -23,7 +23,8 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Rust
|
||||
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
|
||||
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe.
|
||||
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
|
||||
- run: cargo build --all --all-features --all-targets
|
||||
- name: Run cargo check (without dev-dependencies to catch missing feature flags)
|
||||
if: startsWith(matrix.rust, 'nightly')
|
||||
|
@ -49,10 +50,7 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- name: Install Rust
|
||||
run: rustup update stable
|
||||
- uses: actions-rs/clippy-check@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --all-features -- -W clippy::all
|
||||
- run: cargo clippy --all-features
|
||||
|
||||
fmt:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -60,7 +58,7 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- name: Install Rust
|
||||
run: rustup update stable
|
||||
- run: cargo fmt --all -- --check
|
||||
- run: cargo fmt --all --check
|
||||
|
||||
security_audit:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Reference in New Issue