ci: add linux release build checks
This commit is contained in:
parent
a0166a88ea
commit
2a9193e91c
35
.github/workflows/ci.yml
vendored
35
.github/workflows/ci.yml
vendored
@ -41,3 +41,38 @@ jobs:
|
||||
env:
|
||||
CGO_ENABLED: "1"
|
||||
run: pnpm -s build
|
||||
|
||||
linux-release-builds:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup CI Environment
|
||||
uses: ./.github/actions/setup-ci-env
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
apt-packages: "build-essential gcc-aarch64-linux-gnu libc6-dev-arm64-cross"
|
||||
|
||||
- name: GoReleaser check (macOS)
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
distribution: goreleaser
|
||||
version: latest
|
||||
args: check --config .goreleaser.yaml
|
||||
|
||||
- name: GoReleaser check (linux/windows)
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
distribution: goreleaser
|
||||
version: latest
|
||||
args: check --config .goreleaser-linux-windows.yaml
|
||||
|
||||
- name: GoReleaser build (linux amd64/arm64)
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
distribution: goreleaser
|
||||
version: latest
|
||||
args: build --snapshot --clean --config .goreleaser-linux-windows.yaml --id wacli_linux_amd64 --id wacli_linux_arm64
|
||||
|
||||
Loading…
Reference in New Issue
Block a user