Skip to content

Commit 3689d04

Browse files
committed
Added: Hack around failed cross tests on some platforms
1 parent 51d3ab1 commit 3689d04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,10 @@ runs:
131131
if: inputs.use-cross == 'true'
132132
shell: bash
133133
working-directory: ${{ inputs.rust-project-path }}
134+
# the RUSTFLAGS are a hack around cross build errors on certain setups
135+
# https://github.com/cross-rs/cross/issues/1561
134136
run: |
135-
cross +${{ inputs.rust-toolchain }} test --all \
137+
RUSTFLAGS="" cross +${{ inputs.rust-toolchain }} test --all \
136138
--features "${{ inputs.features }}" \
137139
${{ inputs.no-default-features == 'true' && '--no-default-features' || '' }} \
138140
${{ inputs.target != '' && format('--target "{0}"', inputs.target) || '' }} \

0 commit comments

Comments
 (0)