Update rust.yml

This commit is contained in:
jb-alvarado 2022-06-01 21:00:57 +02:00 committed by GitHub
parent d3082f6577
commit 79faf94a22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,16 +7,16 @@ jobs:
os: [ubuntu-latest, macOS-latest, windows-latest] os: [ubuntu-latest, macOS-latest, windows-latest]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- run: rustup update stable - run: rustup update stable
- run: rustup component add rustfmt
- run: rustup component add clippy
- name: cargo build - name: cargo build
# uses: actions/cache@v1 uses: actions/checkout@v3
# with: # with:
# path: target # path: target
# key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} # key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
# key: ubuntu-latest-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} # key: ubuntu-latest-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- run: rustup component add rustfmt
- run: rustup component add clippy
- run: cargo build --all-features - run: cargo build --all-features
- run: cargo test --all-features - run: cargo test --all-features
- run: cargo fmt --all -- --check - run: cargo fmt --all -- --check