diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3c020843..dc582466 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -230,7 +230,7 @@ jobs: target: ${{matrix.target}} - name: Release build if: ${{ ! contains(matrix.target, 'freebsd') }} - uses: clechasseur/rs-cargo@v3 + uses: clechasseur/rs-cargo@v4 with: command: build tool: ${{ matrix.os == 'ubuntu' && 'cross' || 'cargo' }} @@ -348,7 +348,7 @@ jobs: target: ${{matrix.target}} - name: Test if: ${{ ! contains(matrix.target, 'freebsd') }} - uses: clechasseur/rs-cargo@v3 + uses: clechasseur/rs-cargo@v4 with: command: test tool: ${{ matrix.os == 'ubuntu' && 'cross' || 'cargo' }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 92ed0a19..975644ca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -134,11 +134,15 @@ jobs: with: toolchain: stable target: ${{matrix.target}} + - if: ${{ matrix.os == 'ubuntu' }} + uses: taiki-e/install-action@v2 + with: + tool: cross - name: Check build - uses: clechasseur/rs-cargo@v2 + uses: clechasseur/rs-cargo@v4 with: command: check - use-cross: ${{ matrix.os == 'ubuntu' }} + tool: ${{ matrix.os == 'ubuntu' && 'cross' || 'cargo' }} args: --release --bins --target ${{matrix.target}} --features ${{matrix.features}} env: CARGO_TARGET_x86_64-unknown-linux-musl: ${{matrix.rustflags}}