Skip to content

Commit 2493d3c

Browse files
committed
ci: Also add MIRI tests
Signed-off-by: John Nunley <[email protected]>
1 parent c56420d commit 2493d3c

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
echo '[patch.crates-io]' >> async-channel/Cargo.toml
7676
echo 'event-listener = { path = ".." }' >> async-channel/Cargo.toml
7777
echo 'event-listener-strategy = { path = "../event-listener-strategy" }' >> async-channel/Cargo.toml
78-
echo '[patch.crates-io]' >> event-listener-strategy/Cargo.toml
78+
echo '[patch.crates-io]' >> async-lock/Cargo.toml
7979
echo 'event-listener = { path = ".." }' >> async-lock/Cargo.toml
8080
echo 'event-listener-strategy = { path = "../event-listener-strategy" }' >> async-lock/Cargo.toml
8181
echo 'async-channel = { path = "../async-channel" }' >> async-lock/Cargo.toml
@@ -122,6 +122,28 @@ jobs:
122122
- run: cargo miri test --all
123123
- run: cargo miri test --no-default-features --tests
124124
- run: cargo miri test --no-default-features --features portable-atomic --tests
125+
- name: Clone some dependent crates
126+
run: |
127+
git clone https://github.com/smol-rs/event-listener-strategy.git
128+
git clone https://github.com/smol-rs/async-channel.git
129+
git clone https://github.com/smol-rs/async-lock.git
130+
- name: Patch dependent crates
131+
run: |
132+
echo '[patch.crates-io]' >> event-listener-strategy/Cargo.toml
133+
echo 'event-listener = { path = ".." }' >> event-listener-strategy/Cargo.toml
134+
echo '[patch.crates-io]' >> async-channel/Cargo.toml
135+
echo 'event-listener = { path = ".." }' >> async-channel/Cargo.toml
136+
echo 'event-listener-strategy = { path = "../event-listener-strategy" }' >> async-channel/Cargo.toml
137+
echo '[patch.crates-io]' >> async-lock/Cargo.toml
138+
echo 'event-listener = { path = ".." }' >> async-lock/Cargo.toml
139+
echo 'event-listener-strategy = { path = "../event-listener-strategy" }' >> async-lock/Cargo.toml
140+
echo 'async-channel = { path = "../async-channel" }' >> async-lock/Cargo.toml
141+
- name: Test dependent crates
142+
# async-channel isn't included here as it appears to be broken on MIRI.
143+
# See https://github.com/smol-rs/async-channel/issues/85
144+
run: |
145+
cargo miri test --manifest-path=event-listener-strategy/Cargo.toml
146+
cargo miri test --manifest-path=async-lock/Cargo.toml
125147
126148
security_audit:
127149
permissions:

0 commit comments

Comments
 (0)