Skip to content

Commit 0bb013e

Browse files
committed
Show enabling of nightly tests as a CI step
1 parent dd45be1 commit 0bb013e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
rust: [beta, stable, 1.56.0]
28-
include:
29-
- rust: nightly
30-
rustflags: --cfg async_trait_nightly_testing
27+
rust: [nightly, beta, stable, 1.56.0]
3128
timeout-minutes: 45
3229
steps:
3330
- uses: actions/checkout@v3
@@ -37,9 +34,10 @@ jobs:
3734
- name: Enable type layout randomization
3835
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
3936
if: matrix.rust == 'nightly'
37+
- name: Enable nightly-only tests
38+
run: echo RUSTFLAGS=${RUSTFLAGS}\ --cfg=async_trait_nightly_testing >> $GITHUB_ENV
39+
if: matrix.rust == 'nightly'
4040
- run: cargo test
41-
env:
42-
RUSTFLAGS: ${{matrix.rustflags}} ${{env.RUSTFLAGS}}
4341

4442
msrv:
4543
name: Rust 1.39.0

0 commit comments

Comments
 (0)