Skip to content

Commit a2d1ed1

Browse files
committed
Enable type layout randomization in CI on nightly
1 parent 7aaa03d commit a2d1ed1

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
@@ -32,6 +32,9 @@ jobs:
3232
with:
3333
toolchain: ${{matrix.rust}}
3434
components: rust-src
35+
- name: Enable type layout randomization
36+
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
37+
if: matrix.rust == 'nightly'
3538
- name: Enable nightly-only tests
3639
run: echo RUSTFLAGS=${RUSTFLAGS}\ --cfg=thiserror_nightly_testing >> $GITHUB_ENV
3740
if: matrix.rust == 'nightly'

0 commit comments

Comments
 (0)