File tree Expand file tree Collapse file tree 2 files changed +35
-3
lines changed Expand file tree Collapse file tree 2 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 19
19
20
20
steps :
21
21
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22
- - uses : EmbarkStudios/cargo-deny-action@34899fc7ba81ca6268d5947a7a16b4649013fea1 # v2.0.11
22
+ - uses : EmbarkStudios/cargo-deny-action@30f817c6f72275c6d54dc744fbca09ebc958599f # v2.0.12
23
23
with :
24
24
command : check ${{ matrix.checks }}
Original file line number Diff line number Diff line change 12
12
NGINX_SOURCE_DIR : nginx
13
13
14
14
jobs :
15
- linux :
15
+ rust-version :
16
+ name : Minimal supported Rust version
17
+ outputs :
18
+ version : ${{ steps.read_version.outputs.msrv }}
16
19
runs-on : ubuntu-latest
20
+ steps :
21
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22
+ - id : read_version
23
+ run : |
24
+ awk -F '=' \
25
+ '/^rust-version[[:space:]]*=/ { gsub(/([" ]|#.*)/,"",$2); print ("msrv=" $2) }' \
26
+ Cargo.toml \
27
+ | tee -a "$GITHUB_OUTPUT"
28
+
29
+ unix :
30
+ needs : rust-version
17
31
18
32
strategy :
19
33
fail-fast : false
20
34
matrix :
35
+ runner :
36
+ - ubuntu
37
+ rust-version :
38
+ - stable
21
39
nginx-ref :
22
40
- master
23
41
- stable-1.28
26
44
- debug-static
27
45
- release
28
46
47
+ include :
48
+ - runner : ubuntu
49
+ rust-version : ${{ needs.rust-version.outputs.version }}
50
+ nginx-ref : stable-1.28
51
+ build : debug
52
+
53
+ - runner : macos
54
+ rust-version : stable
55
+ nginx-ref : stable-1.28
56
+ build : debug
57
+
58
+ runs-on : ${{ matrix.runner }}-latest
59
+
29
60
steps :
30
61
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31
62
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
42
73
43
74
- uses : dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b
44
75
with :
45
- toolchain : stable
76
+ toolchain : ${{ matrix.rust-version }}
77
+ components : clippy, rustfmt
46
78
47
79
- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
48
80
with :
You can’t perform that action at this time.
0 commit comments