Skip to content

Commit

Permalink
Include global rustflags in rustflags override
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 1, 2022
1 parent 878cd24 commit 349596b
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
schedule: [cron: "40 1 * * *"]

env:
RUSTFLAGS: '-Dwarnings'
RUSTFLAGS: -Dwarnings

jobs:
test:
Expand All @@ -24,8 +24,14 @@ jobs:
- run: cargo test
- run: cargo test --no-default-features
- run: cargo test --features span-locations
- run: RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo test
- run: RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo test --no-default-features
- name: RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo test
run: cargo test
env:
RUSTFLAGS: --cfg procmacro2_semver_exempt ${{env.RUSTFLAGS}}
- name: RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo test --no-default-features
run: cargo test --no-default-features
env:
RUSTFLAGS: --cfg procmacro2_semver_exempt ${{env.RUSTFLAGS}}

nightly:
name: Rust nightly
Expand All @@ -38,9 +44,18 @@ jobs:
- run: cargo test --no-default-features -- --ignored # run the ignored test to make sure the `proc-macro` feature is disabled
- run: cargo test --features span-locations
- run: cargo test --manifest-path tests/ui/Cargo.toml
- run: RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo test
- run: RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo test --no-default-features
- run: RUSTFLAGS='-Z allow-features=' cargo test
- name: RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo test
run: cargo test
env:
RUSTFLAGS: --cfg procmacro2_semver_exempt ${{env.RUSTFLAGS}}
- name: RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo test --no-default-features
run: cargo test --no-default-features
env:
RUSTFLAGS: --cfg procmacro2_semver_exempt ${{env.RUSTFLAGS}}
- name: RUSTFLAGS='-Z allow-features=' cargo test
run: cargo test
env:
RUSTFLAGS: -Z allow-features= ${{env.RUSTFLAGS}}
- run: cargo update -Z minimal-versions && cargo build

webassembly:
Expand Down

0 comments on commit 349596b

Please sign in to comment.