We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
success
1 parent a6ed009 commit 046c772Copy full SHA for 046c772
.github/workflows/main.yml
@@ -136,4 +136,21 @@ jobs:
136
rustup default nightly
137
- uses: Swatinem/rust-cache@v2
138
- run: cargo doc
139
-
+
140
+ success:
141
+ needs:
142
+ - clippy
143
+ - test
144
+ - cross_compile_test
145
+ - ios_cross_compile_test
146
+ - rustfmt
147
+ - doc
148
+ runs-on: ubuntu-latest
149
+ # GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
150
+ # failed" as success. So we have to do some contortions to ensure the job fails if any of its
151
+ # dependencies fails.
152
+ if: always() # make sure this is never "skipped"
153
+ steps:
154
+ # Manually check the status of all dependencies. `if: failure()` does not work.
155
+ - name: check if any dependency failed
156
+ run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
0 commit comments