Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
ci: Tweaks for multi go version tests (#3673)
Francis Lavoie committed
Aug 20, 2020 at 22:40 UTC
ecbc1f85c5ada6c9e50a3f0b0724b8d7731349ba
4 files changed
+26
-22
.github/workflows/ci.yml
+7
-7
@@ -17,7 +17,7 @@ jobs:
17
fail-fast: false
18
matrix:
19
os: [ ubuntu-latest, macos-latest, windows-latest ]
20
- go-version: [ 1.14.x, 1.15.x ]
20
+ go: [ '1.14', '1.15' ]
21
22
# Set some variables per OS, usable via ${{ matrix.VAR }}
23
# CADDY_BIN_PATH: the path to the compiled Caddy binary, for artifact publishing
@@ -41,7 +41,7 @@ jobs:
41
- name: Install Go
42
uses: actions/setup-go@v2
43
with:
44
- go-version: ${{ matrix.go-version }}
44
+ go-version: ${{ matrix.go }}
45
46
- name: Checkout code
47
uses: actions/checkout@v2
@@ -69,12 +69,12 @@ jobs:
69
echo "::set-output name=go_cache::$(go env GOCACHE)"
70
71
- name: Cache the build cache
72
- uses: actions/cache@v1
72
+ uses: actions/cache@v2
73
with:
74
path: ${{ steps.vars.outputs.go_cache }}
75
- key: ${{ runner.os }}-go-ci-${{ hashFiles('**/go.sum') }}
75
+ key: ${{ runner.os }}-${{ matrix.go }}-go-ci-${{ hashFiles('**/go.sum') }}
76
restore-keys: |
77
- ${{ runner.os }}-go-ci
77
+ ${{ runner.os }}-${{ matrix.go }}-go-ci
78
79
- name: Get dependencies
80
run: |
@@ -91,7 +91,7 @@ jobs:
91
- name: Publish Build Artifact
92
uses: actions/upload-artifact@v1
93
with:
94
- name: caddy_v2_${{ runner.os }}_${{ steps.vars.outputs.short_sha }}
94
+ name: caddy_${{ runner.os }}_go${{ matrix.go }}_${{ steps.vars.outputs.short_sha }}
95
path: ${{ matrix.CADDY_BIN_PATH }}
96
97
# Commented bits below were useful to allow the job to continue
@@ -167,7 +167,7 @@ jobs:
167
steps:
168
- name: checkout
169
uses: actions/checkout@v2
170
- - uses: goreleaser/goreleaser-action@v1
170
+ - uses: goreleaser/goreleaser-action@v2
171
with:
172
version: latest
173
args: check
.github/workflows/cross-build.yml
+9
-5
@@ -14,14 +14,15 @@ jobs:
14
fail-fast: false
15
matrix:
16
goos: ['android', 'linux', 'solaris', 'illumos', 'dragonfly', 'freebsd', 'openbsd', 'plan9', 'windows', 'darwin', 'netbsd']
17
- go-version: [ 1.14.x, 1.15.x ]
17
+ go: [ '1.14', '1.15' ]
18
runs-on: ubuntu-latest
19
continue-on-error: true
20
steps:
21
- name: Install Go
22
uses: actions/setup-go@v2
23
with:
24
- go-version: ${{ matrix.go-version }}
24
+ go-version: ${{ matrix.go }}
25
+
26
- name: Print Go version and environment
27
id: vars
28
run: |
@@ -32,15 +33,18 @@ jobs:
33
printf "\n\nSystem environment:\n\n"
34
env
35
echo "::set-output name=go_cache::$(go env GOCACHE)"
36
+
37
- name: Cache the build cache
36
- uses: actions/cache@v1
38
+ uses: actions/cache@v2
39
with:
40
path: ${{ steps.vars.outputs.go_cache }}
39
- key: cross-build-go-${{ matrix.goos }}-${{ hashFiles('**/go.sum') }}
41
+ key: cross-build-go${{ matrix.go }}-${{ matrix.goos }}-${{ hashFiles('**/go.sum') }}
42
restore-keys: |
41
- cross-build-go-${{ matrix.goos }}
43
+ cross-build-go${{ matrix.go }}-${{ matrix.goos }}
44
+
45
- name: Checkout code into the Go module directory
46
uses: actions/checkout@v2
47
+
48
- name: Run Build
49
env:
50
CGO_ENABLED: 0
.github/workflows/fuzzing.yml
+3
-3
@@ -12,14 +12,14 @@ jobs:
12
strategy:
13
matrix:
14
os: [ ubuntu-latest ]
15
- go-version: [ 1.14.x ]
15
+ go: [ '1.14' ]
16
runs-on: ${{ matrix.os }}
17
18
steps:
19
- name: Install Go
20
- uses: actions/setup-go@v1
20
+ uses: actions/setup-go@v2
21
with:
22
- go-version: ${{ matrix.go-version }}
22
+ go-version: ${{ matrix.go }}
23
24
- name: Checkout code
25
uses: actions/checkout@v2
.github/workflows/release.yml
+7
-7
@@ -11,14 +11,14 @@ jobs:
11
strategy:
12
matrix:
13
os: [ ubuntu-latest ]
14
- go-version: [ 1.14.x ]
14
+ go: [ '1.15' ]
15
runs-on: ${{ matrix.os }}
16
17
steps:
18
- name: Install Go
19
- uses: actions/setup-go@v1
19
+ uses: actions/setup-go@v2
20
with:
21
- go-version: ${{ matrix.go-version }}
21
+ go-version: ${{ matrix.go }}
22
23
- name: Checkout code
24
uses: actions/checkout@v2
@@ -54,16 +54,16 @@ jobs:
54
echo "::set-output name=tag_special::${TAG_SPECIAL}"
55
56
- name: Cache the build cache
57
- uses: actions/cache@v1
57
+ uses: actions/cache@v2
58
with:
59
path: ${{ steps.vars.outputs.go_cache }}
60
- key: ${{ runner.os }}-go-release-${{ hashFiles('**/go.sum') }}
60
+ key: ${{ runner.os }}-go${{ matrix.go }}-release-${{ hashFiles('**/go.sum') }}
61
restore-keys: |
62
- ${{ runner.os }}-go-release
62
+ ${{ runner.os }}-go${{ matrix.go }}-release
63
64
# GoReleaser will take care of publishing those artifacts into the release
65
- name: Run GoReleaser
66
- uses: goreleaser/goreleaser-action@v1
66
+ uses: goreleaser/goreleaser-action@v2
67
with:
68
version: latest
69
args: release --rm-dist