From 3689d04f8a1c968735bb96378168d9537a823ffa Mon Sep 17 00:00:00 2001 From: Sewer56 Date: Sun, 24 Nov 2024 13:05:11 +0000 Subject: [PATCH] Added: Hack around failed cross tests on some platforms --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 48711ba..56fd152 100644 --- a/action.yml +++ b/action.yml @@ -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) || '' }} \