From 5830e573f69b965e79f67713cdfcc9391dc8a1b8 Mon Sep 17 00:00:00 2001 From: ximon18 <3304436+ximon18@users.noreply.github.com> Date: Wed, 2 Nov 2022 11:40:50 +0100 Subject: [PATCH] Replace actions-rs/cargo as maintainers are silent on issue actions-rs/cargo#216. --- .github/workflows/pkg-rust.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pkg-rust.yml b/.github/workflows/pkg-rust.yml index a7e79d4..8d07389 100644 --- a/.github/workflows/pkg-rust.yml +++ b/.github/workflows/pkg-rust.yml @@ -539,7 +539,8 @@ jobs: if: ${{ steps.verify.outputs.no-cross == 'false' }} uses: actions/checkout@v3 - - name: Cache cargo cross + - name: Cache cargo cross if available + id: cache-cargo-cross if: ${{ steps.verify.outputs.no-cross == 'false' }} uses: actions/cache@v3 with: @@ -548,13 +549,15 @@ jobs: /home/runner/.cargo/bin/cross-util key: ${{ matrix.target }}-cargo-cross + - name: Install Cargo Cross if needed + if: ${{ steps.cache-cargo-cross.outputs.cache-hit != 'true' }} + run: | + cargo install cross + - name: Cross compile if: ${{ steps.verify.outputs.no-cross == 'false' }} - uses: actions-rs/cargo@v1 - with: - use-cross: true - command: build - args: --locked --release --target ${{ matrix.target }} ${{ inputs.cross_build_args }} + run: | + cross build --locked --release --target ${{ matrix.target }} ${{ inputs.cross_build_args }} - name: Tar the set of created binaries to upload if: ${{ steps.verify.outputs.no-cross == 'false' }}