fix: with target

This commit is contained in:
Kasper Juul Hermansen 2023-03-18 16:34:58 +01:00
parent 6858ee74cd
commit c56370182f
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -91,26 +91,34 @@ jobs:
if: matrix.target == ''
with:
toolchain: ${{ matrix.rust }}
- uses: actions-rs/toolchain@v1
if: matrix.target != ''
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
use-cross: true
- uses: actions-rs/cargo@v1
if: matrix.target != ''
with:
use-cross: true
command: build --workspace --verbose
command: build
args: --workspace --verbose --target ${{ matrix.target }}
- uses: actions-rs/cargo@v1
if: matrix.target == ''
with:
command: build --workspace --verbose
command: build
args: --workspace --verbose
- uses: actions-rs/cargo@v1
if: matrix.target != ''
with:
use-cross: true
command: test --all --verbose
command: test
args: --all --verbose --target ${{ matrix.target }}
- uses: actions-rs/cargo@v1
if: matrix.target == ''
with:
command: test --all --verbose
command: test
args: --all --verbose