Skip to content

Commit d163d0b

Browse files
committed
try improve speed of go build
Signed-off-by: Slach <[email protected]>
1 parent da9f21c commit d163d0b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ jobs:
3232
run: |
3333
sudo apt-get install -y musl-tools musl-dev
3434
35-
# - name: Cache golang
36-
# id: cache-golang
37-
# uses: actions/cache@v4
38-
# with:
39-
# path: |
40-
# ~/go/pkg/mod
41-
# ~/.cache/go-build
42-
# key: clickhouse-backup-golang-${{ matrix.golang-version }}-${{ hashFiles('go.mod', '.github/workflows/*.yaml') }}
35+
- name: Cache golang
36+
id: cache-golang
37+
uses: actions/cache@v4
38+
with:
39+
path: |
40+
~/go/pkg/mod
41+
~/.cache/go-build
42+
key: clickhouse-backup-golang-${{ matrix.golang-version }}-${{ hashFiles('go.mod', '.github/workflows/*.yaml') }}
4343

4444
- name: Install golang dependencies
4545
run: go mod download -x
46-
# if: |
47-
# steps.cache-golang.outputs.cache-hit != 'true'
46+
if: |
47+
steps.cache-golang.outputs.cache-hit != 'true'
4848
4949
- name: Build clickhouse-backup binary
5050
id: make-race

0 commit comments

Comments
 (0)