Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 13, 04:15 UTC
chore: Adjustments to CI caching (#5495)
Francis Lavoie committed
Apr 14, 2023 at 21:38 UTC
998c6e06a75030cccabcc08790bc32642791aff7
3 files changed
+13
-55
.github/workflows/ci.yml
+5
-22
@@ -48,15 +48,15 @@ jobs:
48
runs-on: ${{ matrix.os }}
49
50
steps:
51
+ - name: Checkout code
52
+ uses: actions/checkout@v3
53
+
54
- name: Install Go
55
uses: actions/setup-go@v4
56
with:
57
go-version: ${{ matrix.GO_SEMVER }}
58
check-latest: true
59
57
- - name: Checkout code
58
- uses: actions/checkout@v3
59
-
60
# These tools would be useful if we later decide to reinvestigate
61
# publishing test/coverage reports to some tool for easier consumption
62
# - name: Install test and coverage analysis tools
@@ -79,23 +79,6 @@ jobs:
79
# Calculate the short SHA1 hash of the git commit
80
echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
81
82
- - name: Cache the build cache
83
- uses: actions/cache@v3
84
- with:
85
- # In order:
86
- # * Module download cache
87
- # * Build cache (Linux)
88
- # * Build cache (Mac)
89
- # * Build cache (Windows)
90
- path: |
91
- ~/go/pkg/mod
92
- ~/.cache/go-build
93
- ~/Library/Caches/go-build
94
- ~\AppData\Local\go-build
95
- key: ${{ runner.os }}-${{ matrix.go }}-go-ci-${{ hashFiles('**/go.sum') }}
96
- restore-keys: |
97
- ${{ runner.os }}-${{ matrix.go }}-go-ci
98
-
82
- name: Get dependencies
83
run: |
84
go get -v -t -d ./...
@@ -146,7 +129,7 @@ jobs:
129
if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'
130
continue-on-error: true # August 2020: s390x VM is down due to weather and power issues
131
steps:
149
- - name: Checkout code into the Go module directory
132
+ - name: Checkout code
133
uses: actions/checkout@v3
134
- name: Run Tests
135
run: |
@@ -172,7 +155,7 @@ jobs:
155
goreleaser-check:
156
runs-on: ubuntu-latest
157
steps:
175
- - name: checkout
158
+ - name: Checkout code
159
uses: actions/checkout@v3
160
161
- uses: goreleaser/goreleaser-action@v4
.github/workflows/cross-build.yml
+3
-16
@@ -27,6 +27,9 @@ jobs:
27
runs-on: ubuntu-latest
28
continue-on-error: true
29
steps:
30
+ - name: Checkout code
31
+ uses: actions/checkout@v3
32
+
33
- name: Install Go
34
uses: actions/setup-go@v4
35
with:
@@ -43,22 +46,6 @@ jobs:
46
printf "\n\nSystem environment:\n\n"
47
env
48
46
- - name: Cache the build cache
47
- uses: actions/cache@v3
48
- with:
49
- # In order:
50
- # * Module download cache
51
- # * Build cache (Linux)
52
- path: |
53
- ~/go/pkg/mod
54
- ~/.cache/go-build
55
- key: cross-build-go${{ matrix.go }}-${{ matrix.goos }}-${{ hashFiles('**/go.sum') }}
56
- restore-keys: |
57
- cross-build-go${{ matrix.go }}-${{ matrix.goos }}
58
-
59
- - name: Checkout code into the Go module directory
60
- uses: actions/checkout@v3
61
-
49
- name: Run Build
50
env:
51
CGO_ENABLED: 0
.github/workflows/release.yml
+5
-17
@@ -29,17 +29,17 @@ jobs:
29
contents: write
30
31
steps:
32
+ - name: Checkout code
33
+ uses: actions/checkout@v3
34
+ with:
35
+ fetch-depth: 0
36
+
37
- name: Install Go
38
uses: actions/setup-go@v4
39
with:
40
go-version: ${{ matrix.GO_SEMVER }}
41
check-latest: true
42
38
- - name: Checkout code
39
- uses: actions/checkout@v3
40
- with:
41
- fetch-depth: 0
42
-
43
# Force fetch upstream tags -- because 65 minutes
44
# tl;dr: actions/checkout@v3 runs this line:
45
# git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +ebc278ec98bb24f2852b61fde2a9bf2e3d83818b:refs/tags/
@@ -94,18 +94,6 @@ jobs:
94
# tags are only accepted if signed by Matt's key
95
git verify-tag "${{ steps.vars.outputs.version_tag }}" || exit 1
96
97
- - name: Cache the build cache
98
- uses: actions/cache@v3
99
- with:
100
- # In order:
101
- # * Module download cache
102
- # * Build cache (Linux)
103
- path: |
104
- ~/go/pkg/mod
105
- ~/.cache/go-build
106
- key: ${{ runner.os }}-go${{ matrix.go }}-release-${{ hashFiles('**/go.sum') }}
107
- restore-keys: |
108
- ${{ runner.os }}-go${{ matrix.go }}-release
97
- name: Install Cosign
98
uses: sigstore/cosign-installer@main
99
- name: Cosign version