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