Skip to content

Commit

Permalink
Added: Hack around failed cross tests on some platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Nov 24, 2024
1 parent 51d3ab1 commit 3689d04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ runs:
if: inputs.use-cross == 'true'
shell: bash
working-directory: ${{ inputs.rust-project-path }}
# the RUSTFLAGS are a hack around cross build errors on certain setups
# https://github.com/cross-rs/cross/issues/1561
run: |
cross +${{ inputs.rust-toolchain }} test --all \
RUSTFLAGS="" cross +${{ inputs.rust-toolchain }} test --all \
--features "${{ inputs.features }}" \
${{ inputs.no-default-features == 'true' && '--no-default-features' || '' }} \
${{ inputs.target != '' && format('--target "{0}"', inputs.target) || '' }} \
Expand Down

0 comments on commit 3689d04

Please sign in to comment.