Add targets to matrix

This commit is contained in:
danielsanchezq 2022-09-27 16:16:23 +02:00
parent 735a1a50b2
commit 40e698d23d

View File

@ -13,7 +13,13 @@ jobs:
name: Check name: Check
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, windows-latest, macos-latest] include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: windows-latest
target: x86_64-pc-windows-gnu
- os: macos-latest
target: x86_64-apple-darwin
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -25,6 +31,7 @@ jobs:
with: with:
profile: minimal profile: minimal
toolchain: stable toolchain: stable
target: ${{ matrix.target }}
override: true override: true
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
continue-on-error: false continue-on-error: false
@ -35,7 +42,13 @@ jobs:
name: Test Suite name: Test Suite
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, windows-latest, macos-latest] include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: windows-latest
target: x86_64-pc-windows-gnu
- os: macos-latest
target: x86_64-apple-darwin
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -50,6 +63,7 @@ jobs:
with: with:
profile: minimal profile: minimal
toolchain: stable toolchain: stable
target: ${{ matrix.target }}
override: true override: true
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
continue-on-error: false continue-on-error: false