File tree Expand file tree Collapse file tree 4 files changed +32
-16
lines changed Expand file tree Collapse file tree 4 files changed +32
-16
lines changed Original file line number Diff line number Diff line change 11name : CI
2- on :
3- push :
4- branches :
5- - staging
6- - trying
2+ on : merge_group
73
84jobs :
95
5854 with :
5955 components : rustfmt
6056 - run : cargo fmt --all --check
57+
58+ # One job that "summarizes" the success state of this pipeline. This can then be added to branch
59+ # protection, rather than having to add each job separately.
60+ success :
61+ name : Success
62+ runs-on : ubuntu-latest
63+ needs : [test, no_std_131, no_std_stable, fmt]
64+ # Github branch protection is exceedingly silly and treats "jobs skipped because a dependency
65+ # failed" as success. So we have to do some contortions to ensure the job fails if any of its
66+ # dependencies fails.
67+ if : always() # make sure this is never "skipped"
68+ steps :
69+ # Manually check the status of all dependencies. `if: failure()` does not work.
70+ - name : check if any dependency failed
71+ run : jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
Original file line number Diff line number Diff line change 2727 with :
2828 components : rustfmt
2929 - run : cargo fmt --all --check
30+
31+ # One job that "summarizes" the success state of this pipeline. This can then be added to branch
32+ # protection, rather than having to add each job separately.
33+ success :
34+ name : Success
35+ runs-on : ubuntu-latest
36+ needs : [test, fmt]
37+ # Github branch protection is exceedingly silly and treats "jobs skipped because a dependency
38+ # failed" as success. So we have to do some contortions to ensure the job fails if any of its
39+ # dependencies fails.
40+ if : always() # make sure this is never "skipped"
41+ steps :
42+ # Manually check the status of all dependencies. `if: failure()` does not work.
43+ - name : check if any dependency failed
44+ run : jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ name = "num-rational"
1010repository = " https://github.com/rust-num/num-rational"
1111version = " 0.4.1"
1212readme = " README.md"
13- exclude = [" /bors.toml " , " / ci/*" , " /.github/*" ]
13+ exclude = [" /ci/*" , " /.github/*" ]
1414edition = " 2018"
1515
1616[package .metadata .docs .rs ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments