Update rust.yml

This commit is contained in:
jb-alvarado 2022-05-18 14:32:12 +02:00 committed by GitHub
parent 1da890ad0c
commit f35b3aa84d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,11 +2,11 @@ name: rust
on: [push, pull_request]
jobs:
build:
# strategy:
# matrix:
# os: [ubuntu-latest, macOS-latest, windows-latest]
# runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
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
@ -14,8 +14,8 @@ jobs:
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') }}
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
- run: cargo build --all-features