Skip to content

Commit 8b7f24a

Browse files
committed
add a job for branch protection
1 parent d70480b commit 8b7f24a

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
# See tools/ci/src/main.rs for the commands this runs
8989
run: cargo run -p ci -- lints
9090

91-
miri-partitions:
91+
miri-setup-partitions:
9292
runs-on: ubuntu-latest
9393
outputs:
9494
partitions: ${{ steps.env.outputs.partitions }}
@@ -103,8 +103,8 @@ jobs:
103103
done
104104
echo "partitions=$t$count]" >> $GITHUB_OUTPUT
105105
106-
miri:
107-
needs: [miri-partitions]
106+
miri-run-partitions:
107+
needs: [miri-setup-partitions]
108108
strategy:
109109
matrix:
110110
partition: ${{ fromJSON(needs.miri-partitions.outputs.partitions) }}
@@ -145,6 +145,13 @@ jobs:
145145
# -Zmiri-ignore-leaks is necessary because a bunch of tests don't join all threads before finishing.
146146
MIRIFLAGS: -Zmiri-ignore-leaks -Zmiri-disable-isolation
147147

148+
miri:
149+
runs-on: ubuntu-latest
150+
needs: [miri-run-partitions]
151+
if: always()
152+
steps:
153+
- run: ${{ !contains(needs.*.result, 'failure') }}
154+
148155
check-compiles:
149156
runs-on: ubuntu-latest
150157
timeout-minutes: 30

0 commit comments

Comments
 (0)