Skip to content

Commit 65e316c

Browse files
committed
fixup! CI: added basic set of workflows.
1 parent e6c8528 commit 65e316c

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,30 @@ env:
1212
NGINX_SOURCE_DIR: nginx
1313

1414
jobs:
15-
linux:
15+
rust-version:
16+
name: Minimal supported Rust version
17+
outputs:
18+
version: ${{ steps.read_version.outputs.msrv }}
1619
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
1731

1832
strategy:
1933
fail-fast: false
2034
matrix:
35+
os:
36+
- ubuntu
37+
rust-version:
38+
- stable
2139
nginx-ref:
2240
- master
2341
- stable-1.28
@@ -26,6 +44,18 @@ jobs:
2644
- debug-static
2745
- release
2846

47+
include:
48+
- os: ubuntu
49+
rust-version: ${{ needs.rust-version.outputs.version }}
50+
nginx-ref: stable-1.28
51+
build: debug
52+
53+
- os: macos
54+
nginx-ref: stable-1.28
55+
build: debug
56+
57+
runs-on: ${{ matrix.os }}-latest
58+
2959
steps:
3060
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3161
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -42,7 +72,7 @@ jobs:
4272
4373
- uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b
4474
with:
45-
toolchain: stable
75+
toolchain: ${{ matrix.rust-version }}
4676

4777
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
4878
with:

0 commit comments

Comments
 (0)