File tree 5 files changed +47
-19
lines changed
5 files changed +47
-19
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
- on :
3
- push :
4
- branches :
5
- - staging
6
- - trying
2
+ on : merge_group
7
3
8
4
jobs :
9
5
24
20
]
25
21
steps :
26
22
- uses : actions/checkout@v4
23
+ - uses : actions/cache@v4
24
+ if : startsWith(matrix.rust, '1')
25
+ with :
26
+ path : ~/.cargo/registry/index
27
+ key : cargo-${{ matrix.rust }}-git-index
27
28
- uses : dtolnay/rust-toolchain@master
28
29
with :
29
30
toolchain : ${{ matrix.rust }}
65
66
with :
66
67
components : rustfmt
67
68
- run : cargo fmt --all --check
69
+
70
+ # One job that "summarizes" the success state of this pipeline. This can then be added to branch
71
+ # protection, rather than having to add each job separately.
72
+ success :
73
+ name : Success
74
+ runs-on : ubuntu-latest
75
+ needs : [test, i686, no_std, fmt]
76
+ # Github branch protection is exceedingly silly and treats "jobs skipped because a dependency
77
+ # failed" as success. So we have to do some contortions to ensure the job fails if any of its
78
+ # dependencies fails.
79
+ if : always() # make sure this is never "skipped"
80
+ steps :
81
+ # Manually check the status of all dependencies. `if: failure()` does not work.
82
+ - name : check if any dependency failed
83
+ run : jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
Original file line number Diff line number Diff line change 16
16
rust : [1.31.0, stable]
17
17
steps :
18
18
- uses : actions/checkout@v4
19
+ - uses : actions/cache@v4
20
+ if : startsWith(matrix.rust, '1')
21
+ with :
22
+ path : ~/.cargo/registry/index
23
+ key : cargo-${{ matrix.rust }}-git-index
19
24
- uses : dtolnay/rust-toolchain@master
20
25
with :
21
26
toolchain : ${{ matrix.rust }}
Original file line number Diff line number Diff line change 12
12
rust : [1.31.0, stable]
13
13
steps :
14
14
- uses : actions/checkout@v4
15
+ - uses : actions/cache@v4
16
+ if : startsWith(matrix.rust, '1')
17
+ with :
18
+ path : ~/.cargo/registry/index
19
+ key : cargo-${{ matrix.rust }}-git-index
15
20
- uses : dtolnay/rust-toolchain@master
16
21
with :
17
22
toolchain : ${{ matrix.rust }}
27
32
with :
28
33
components : rustfmt
29
34
- run : cargo fmt --all --check
35
+
36
+ # One job that "summarizes" the success state of this pipeline. This can then be added to branch
37
+ # protection, rather than having to add each job separately.
38
+ success :
39
+ name : Success
40
+ runs-on : ubuntu-latest
41
+ needs : [test, fmt]
42
+ # Github branch protection is exceedingly silly and treats "jobs skipped because a dependency
43
+ # failed" as success. So we have to do some contortions to ensure the job fails if any of its
44
+ # dependencies fails.
45
+ if : always() # make sure this is never "skipped"
46
+ steps :
47
+ # Manually check the status of all dependencies. `if: failure()` does not work.
48
+ - name : check if any dependency failed
49
+ run : jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ repository = "https://github.com/rust-num/num-bigint"
11
11
version = " 0.4.4"
12
12
readme = " README.md"
13
13
build = " build.rs"
14
- exclude = [" /bors.toml " , " / ci/*" , " /.github/*" ]
14
+ exclude = [" /ci/*" , " /.github/*" ]
15
15
edition = " 2018"
16
16
17
17
[features ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments