Enable type layout randomization in CI on nightly

This commit is contained in:
David Tolnay 2023-02-19 09:21:56 -08:00
parent 320250e56d
commit e9573cd99e
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust}}
- name: Enable type layout randomization
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
if: matrix.rust == 'nightly'
- run: cargo build
- run: cargo test
- run: cargo test --release