Skip to content

Commit d49b8ac

Browse files
committed
ci: Fix cfg flag from madsim to msim
The fork uses --cfg msim, not --cfg madsim (the upstream name). Without this, the sim variants of clippy/build/test/bench/doc were not actually compiling the simulator code.
1 parent a83b02a commit d49b8ac

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Clippy sim
2424
run: cargo clippy -- -D warnings
2525
env:
26-
RUSTFLAGS: "--cfg madsim"
26+
RUSTFLAGS: "--cfg msim"
2727

2828
build:
2929
runs-on: ubuntu-latest
@@ -35,7 +35,7 @@ jobs:
3535
- name: Build sim
3636
run: cargo build
3737
env:
38-
RUSTFLAGS: "--cfg madsim"
38+
RUSTFLAGS: "--cfg msim"
3939

4040
test:
4141
runs-on: ubuntu-latest
@@ -47,8 +47,8 @@ jobs:
4747
- name: Test sim
4848
run: cargo test --release --no-fail-fast
4949
env:
50-
RUSTFLAGS: "--cfg madsim"
51-
RUSTDOCFLAGS: "--cfg madsim"
50+
RUSTFLAGS: "--cfg msim"
51+
RUSTDOCFLAGS: "--cfg msim"
5252

5353
bench:
5454
runs-on: ubuntu-latest
@@ -58,7 +58,7 @@ jobs:
5858
- name: Bench
5959
run: cargo bench -p msim
6060
env:
61-
RUSTFLAGS: "--cfg madsim"
61+
RUSTFLAGS: "--cfg msim"
6262

6363
doc:
6464
runs-on: ubuntu-latest
@@ -68,5 +68,5 @@ jobs:
6868
- name: Doc
6969
run: cargo doc --no-deps
7070
env:
71-
RUSTFLAGS: "--cfg madsim"
72-
RUSTDOCFLAGS: "--cfg madsim --cfg docsrs"
71+
RUSTFLAGS: "--cfg msim"
72+
RUSTDOCFLAGS: "--cfg msim --cfg docsrs"

0 commit comments

Comments
 (0)