Skip to content

Commit

Permalink
Enable type layout randomization in CI on nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 19, 2023
1 parent 97b378b commit ef7636f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 check
- run: cargo check --features verbatim
- run: cargo test
Expand All @@ -48,6 +51,8 @@ jobs:
- uses: dtolnay/rust-toolchain@nightly
with:
components: llvm-tools, rustc-dev, rustfmt
- name: Enable type layout randomization
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
- run: cargo run --manifest-path examples/update/Cargo.toml
- run: git diff --exit-code
- run: cargo run --manifest-path cargo-expand/update/Cargo.toml
Expand Down

0 comments on commit ef7636f

Please sign in to comment.