-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't set MSRV and only run doctests on nightly
We have too many dependencies to actually guarantee our MSRV. We only run doctests on nightly so we don't have to generalize doctests for slightly different line numbers across different Rust versions. Our integration tests do generalize in this way, so we still run those on both stable and nightly.
- Loading branch information
Showing
5 changed files
with
18 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,15 +43,15 @@ env: | |
# `CRATE_NIGHTLY_XXX` are flags that we add to `XXX` only on the nightly | ||
# toolchain. | ||
CRATE_NIGHTLY_RUSTFLAGS: -Zrandomize-layout | ||
CRATE_NIGHTLY_MIRIFLAGS: "-Zmiri-disable-isolation -Zmiri-symbolic-alignment-check" | ||
CRATE_NIGHTLY_MIRIFLAGS: "-Zmiri-disable-isolation" | ||
|
||
jobs: | ||
build_test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
toolchain: [ "msrv", "stable", "nightly" ] | ||
toolchain: [ "stable", "nightly" ] | ||
target: [ "i686-unknown-linux-gnu", "x86_64-unknown-linux-gnu" ] | ||
|
||
name: Build & Test (toolchain:${{ matrix.toolchain }}, target:${{ matrix.target }}) | ||
|
@@ -138,23 +138,27 @@ jobs: | |
|
||
- name: Check lib | ||
run: cargo +${{ env.CRATE_TOOLCHAIN }} check --target ${{ matrix.target }} --lib --verbose | ||
if: ${{ matrix.toolchain == 'msrv' }} | ||
|
||
- name: Check extras | ||
run: cargo +${{ env.CRATE_TOOLCHAIN }} check --target ${{ matrix.target }} --all-targets --verbose | ||
if: ${{ matrix.toolchain != 'msrv' }} | ||
|
||
- name: Test | ||
run: cargo +${{ env.CRATE_TOOLCHAIN }} test --target ${{ matrix.target }} --verbose | ||
- name: Test (doc) | ||
run: cargo +${{ env.CRATE_TOOLCHAIN }} test --target ${{ matrix.target }} --verbose --doc | ||
# Only run tests when targetting x86 (32- or 64-bit) - we're executing on | ||
# x86_64, so we can't run tests for any non-x86 target. | ||
if: ${{ matrix.toolchain != 'msrv' && (contains(matrix.target, 'x86_64') || contains(matrix.target, 'i686')) }} | ||
if: ${{ matrix.toolchain == 'nightly' && (contains(matrix.target, 'x86_64') || contains(matrix.target, 'i686')) }} | ||
|
||
- name: Test (integration) | ||
run: cargo +${{ env.CRATE_TOOLCHAIN }} test --target ${{ matrix.target }} --verbose --tests | ||
# Only run tests when targetting x86 (32- or 64-bit) - we're executing on | ||
# x86_64, so we can't run tests for any non-x86 target. | ||
if: ${{ (contains(matrix.target, 'x86_64') || contains(matrix.target, 'i686')) }} | ||
|
||
- name: Test (loom) | ||
run: cargo +${{ env.CRATE_TOOLCHAIN }} test --target ${{ matrix.target }} --verbose --release --tests | ||
# Only run tests when targetting x86 (32- or 64-bit) - we're executing on | ||
# x86_64, so we can't run tests for any non-x86 target. | ||
if: ${{ matrix.toolchain != 'msrv' && (contains(matrix.target, 'x86_64') || contains(matrix.target, 'aarch64')) }} | ||
if: ${{ (contains(matrix.target, 'x86_64') || contains(matrix.target, 'aarch64')) }} | ||
env: | ||
RUSTFLAGS: --cfg loom ${{ env.RUSTFLAGS }} | ||
|
||
|
@@ -198,19 +202,6 @@ jobs: | |
set -e | ||
cargo clippy --all-targets | ||
check_msrv: | ||
runs-on: ubuntu-latest | ||
name: Check MSRVs match | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
- uses: extractions/setup-just@v1 | ||
# Make sure that the MSRV in async-backtrace's and async-backtrace-attributes's | ||
# `Cargo.toml` files are the same. | ||
- name: Check MSRVs match | ||
run: just check-msrv | ||
|
||
check_readme: | ||
runs-on: ubuntu-latest | ||
name: Check README is correctly generated. | ||
|
@@ -219,7 +210,7 @@ jobs: | |
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
- uses: extractions/setup-just@v1 | ||
- name: Check MSRVs match | ||
- name: Check README matches | ||
run: | | ||
set -e | ||
cargo install cargo-readme --version 3.2.0 | ||
|
@@ -233,7 +224,6 @@ jobs: | |
- build_test | ||
- check_fmt | ||
- check_clippy | ||
- check_msrv | ||
- check_readme | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters