Update rust.yml
This commit is contained in:
parent
19e3b8db2d
commit
d3082f6577
11
.github/workflows/rust.yml
vendored
11
.github/workflows/rust.yml
vendored
@ -6,15 +6,14 @@ jobs:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macOS-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
# runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: rustup update stable
|
||||
- name: Cache cargo build
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: target
|
||||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: cargo build
|
||||
# uses: actions/cache@v1
|
||||
# with:
|
||||
# path: target
|
||||
# key: ${{ runner.os }}-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
|
||||
|
Loading…
Reference in New Issue
Block a user