From c56370182fd8427e30d423b0b9c7a4e70238f7c7 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 18 Mar 2023 16:34:58 +0100 Subject: [PATCH] fix: with target --- .github/workflows/ci-multiplatform.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-multiplatform.yml b/.github/workflows/ci-multiplatform.yml index f5aca4c..cd9c4c6 100644 --- a/.github/workflows/ci-multiplatform.yml +++ b/.github/workflows/ci-multiplatform.yml @@ -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