Skip to content

Commit

Permalink
Replace actions-rs/cargo as maintainers are silent on issue actions-r…
Browse files Browse the repository at this point in the history
  • Loading branch information
ximon18 committed Nov 2, 2022
1 parent 21c3306 commit 5830e57
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/pkg-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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' }}
Expand Down

0 comments on commit 5830e57

Please sign in to comment.