@marcel91200 / caddy Mirror · read-only / commits / c78ebb3d
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 12, 17:00 UTC

chore: Rename CI jobs, run on M1 mac (#6089)

* Try macos-14 for fun * Decouple OS names and VM names * Shorten `cross-build-test` to `build`

Francis Lavoie committed Feb 9, 2024 at 17:31 UTC c78ebb3d6ad796d8e2f67f46b9cda72b7472c2e4
3 files changed +29 -13
.github/workflows/ci.yml
+12 -8
@@ -19,9 +19,9 @@ jobs:
19 fail-fast: false
20 matrix:
21 os:
22 - - ubuntu-latest
23 - - macos-latest
24 - - windows-latest
22 + - linux
23 + - mac
24 + - windows
25 go:
26 - '1.21'
27 - '1.22'
@@ -36,21 +36,25 @@ jobs:
36 GO_SEMVER: '~1.22.0'
37
38 # Set some variables per OS, usable via ${{ matrix.VAR }}
39 + # OS_LABEL: the VM label from GitHub Actions (see https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories)
40 # CADDY_BIN_PATH: the path to the compiled Caddy binary, for artifact publishing
41 # SUCCESS: the typical value for $? per OS (Windows/pwsh returns 'True')
41 - - os: ubuntu-latest
42 + - os: linux
43 + OS_LABEL: ubuntu-latest
44 CADDY_BIN_PATH: ./cmd/caddy/caddy
45 SUCCESS: 0
46
45 - - os: macos-latest
47 + - os: mac
48 + OS_LABEL: macos-14
49 CADDY_BIN_PATH: ./cmd/caddy/caddy
50 SUCCESS: 0
51
49 - - os: windows-latest
52 + - os: windows
53 + OS_LABEL: windows-latest
54 CADDY_BIN_PATH: ./cmd/caddy/caddy.exe
55 SUCCESS: 'True'
56
53 - runs-on: ${{ matrix.os }}
57 + runs-on: ${{ matrix.OS_LABEL }}
58
59 steps:
60 - name: Checkout code
@@ -125,7 +129,7 @@ jobs:
129
130 # To return the correct result even though we set 'continue-on-error: true'
131 # - name: Coerce correct build result
128 - # if: matrix.os != 'windows-latest' && steps.step_test.outputs.status != ${{ matrix.SUCCESS }}
132 + # if: matrix.os != 'windows' && steps.step_test.outputs.status != ${{ matrix.SUCCESS }}
133 # run: |
134 # echo "step_test ${{ steps.step_test.outputs.status }}\n"
135 # exit 1
.github/workflows/cross-build.yml
+1 -1
@@ -11,7 +11,7 @@ on:
11 - 2.*
12
13 jobs:
14 - cross-build-test:
14 + build:
15 strategy:
16 fail-fast: false
17 matrix:
.github/workflows/lint.yml
+16 -4
@@ -23,10 +23,22 @@ jobs:
23 strategy:
24 matrix:
25 os:
26 - - ubuntu-latest
27 - - macos-latest
28 - - windows-latest
29 - runs-on: ${{ matrix.os }}
26 + - linux
27 + - mac
28 + - windows
29 +
30 + include:
31 + - os: linux
32 + OS_LABEL: ubuntu-latest
33 +
34 + - os: mac
35 + OS_LABEL: macos-14
36 +
37 + - os: windows
38 + OS_LABEL: windows-latest
39 +
40 + runs-on: ${{ matrix.OS_LABEL }}
41 +
42 steps:
43 - uses: actions/checkout@v4
44 - uses: actions/setup-go@v5