Skip to content

Commit

Permalink
Show enabling of nightly tests as a CI step
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 19, 2023
1 parent dd45be1 commit 0bb013e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
rust: [beta, stable, 1.56.0]
include:
- rust: nightly
rustflags: --cfg async_trait_nightly_testing
rust: [nightly, beta, stable, 1.56.0]
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
Expand All @@ -37,9 +34,10 @@ jobs:
- name: Enable type layout randomization
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
if: matrix.rust == 'nightly'
- name: Enable nightly-only tests
run: echo RUSTFLAGS=${RUSTFLAGS}\ --cfg=async_trait_nightly_testing >> $GITHUB_ENV
if: matrix.rust == 'nightly'
- run: cargo test
env:
RUSTFLAGS: ${{matrix.rustflags}} ${{env.RUSTFLAGS}}

msrv:
name: Rust 1.39.0
Expand Down

0 comments on commit 0bb013e

Please sign in to comment.