Skip to content

Commit 27b6085

Browse files
authored
Merge pull request #6 from ClickHouse/fix-build
fix build
2 parents bc578ab + 1595d19 commit 27b6085

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

.github/workflows/release.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,41 @@ env:
1212

1313

1414
jobs:
15+
cross-compile:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Check out the repo
19+
uses: actions/checkout@v3
20+
- name: Setup Go
21+
uses: actions/setup-go@v3
22+
with:
23+
go-version: "1.21"
24+
- name: Cache Go
25+
id: go-cache
26+
uses: actions/cache@v3
27+
with:
28+
path: |
29+
~/go/bin
30+
~/go/pkg/mod
31+
key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }}
32+
- name: Install promu
33+
run: make promu
34+
shell: bash
35+
- name: Build
36+
run: ~/go/bin/promu -c .promu.yml crossbuild -v -p linux/amd64 -p linux/arm64 -p darwin/amd64 -p darwin/arm64
37+
- name: Upload Binaries
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: binaries
41+
path: .build/*
42+
include-hidden-files: true
43+
44+
1545
push_to_registries:
16-
name: Push Docker image to multiple registries
46+
name: Push Docker image
1747
runs-on: ubuntu-latest
48+
needs: [cross-compile]
49+
1850
permissions:
1951
attestations: write
2052
packages: write
@@ -32,6 +64,14 @@ jobs:
3264
- name: Set up Docker Buildx
3365
uses: docker/setup-buildx-action@v2
3466

67+
- name: Download Binaries
68+
uses: actions/download-artifact@v4
69+
with:
70+
name: binaries
71+
path: .build/
72+
include-hidden-files: true
73+
74+
- run: chmod +x .build/**/*
3575

3676
- name: Log in to the Container registry
3777
uses: docker/login-action@v3

0 commit comments

Comments
 (0)