Skip to content

Commit 2a9193e

Browse files
committed
ci: add linux release build checks
1 parent a0166a8 commit 2a9193e

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,38 @@ jobs:
4141
env:
4242
CGO_ENABLED: "1"
4343
run: pnpm -s build
44+
45+
linux-release-builds:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Checkout
49+
uses: actions/checkout@v6
50+
with:
51+
fetch-depth: 0
52+
53+
- name: Setup CI Environment
54+
uses: ./.github/actions/setup-ci-env
55+
with:
56+
go-version-file: go.mod
57+
apt-packages: "build-essential gcc-aarch64-linux-gnu libc6-dev-arm64-cross"
58+
59+
- name: GoReleaser check (macOS)
60+
uses: goreleaser/goreleaser-action@v6
61+
with:
62+
distribution: goreleaser
63+
version: latest
64+
args: check --config .goreleaser.yaml
65+
66+
- name: GoReleaser check (linux/windows)
67+
uses: goreleaser/goreleaser-action@v6
68+
with:
69+
distribution: goreleaser
70+
version: latest
71+
args: check --config .goreleaser-linux-windows.yaml
72+
73+
- name: GoReleaser build (linux amd64/arm64)
74+
uses: goreleaser/goreleaser-action@v6
75+
with:
76+
distribution: goreleaser
77+
version: latest
78+
args: build --snapshot --clean --config .goreleaser-linux-windows.yaml --id wacli_linux_amd64 --id wacli_linux_arm64

0 commit comments

Comments
 (0)