ci: fix and test job run only on linux

This commit is contained in:
MedzikUser 2022-04-16 20:24:48 +02:00
parent 7b1d092001
commit d074fc58a2
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
1 changed files with 4 additions and 6 deletions

View File

@ -34,7 +34,7 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
components: clippy
- name: Cache
uses: actions/cache@v3
@ -54,17 +54,16 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: clippy
args: -D warnings
args: -- -D warnings
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable, nightly]
name: ${{ matrix.rust }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
name: ${{ matrix.rust }} test
runs-on: ubuntu-latest
steps:
- name: Checkout
@ -77,7 +76,6 @@ jobs:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- name: Cache
uses: actions/cache@v3