Skip to content

Commit dd45be1

Browse files
committed
Enable type layout randomization in CI on nightly
1 parent 3c01011 commit dd45be1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
- uses: dtolnay/rust-toolchain@master
3535
with:
3636
toolchain: ${{matrix.rust}}
37+
- name: Enable type layout randomization
38+
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
39+
if: matrix.rust == 'nightly'
3740
- run: cargo test
3841
env:
3942
RUSTFLAGS: ${{matrix.rustflags}} ${{env.RUSTFLAGS}}

0 commit comments

Comments
 (0)