diff --git a/action.yml b/action.yml index 21e1bc8d..b0865ebc 100644 --- a/action.yml +++ b/action.yml @@ -106,5 +106,12 @@ runs: fi shell: bash + - run: | + : enable randomized type layout + if rustc +${{steps.parse.outputs.toolchain}} --version --verbose | grep -q '^release: .*nightly'; then + echo RUSTFLAGS="-Zrandomize-layout ${RUSTFLAGS}" >> $GITHUB_ENV + fi + shell: bash + - run: rustc +${{steps.parse.outputs.toolchain}} --version --verbose shell: bash