Skip to content

Commit

Permalink
Fix release script by removing release targets that require CGO (#4014)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortent committed Aug 2, 2023
1 parent 5185eff commit 5108bca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 69 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,15 @@ jobs:
id: setup-release-env
run: |-
echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env
- name: Run GoReleaser within Docker
- name: Run GoReleaser
id: run-goreleaser
run: |
make release-ci
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --skip-validate -f release/tag/goreleaser.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate SLSA subjects for provenance
id: hash
run: |
Expand Down
66 changes: 0 additions & 66 deletions release/tag/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,54 +63,6 @@ builds:
- arm64
ldflags: -s -w -X github.com/GoogleContainerTools/kpt/run.version={{.Version}} -extldflags "-z noexecstack"

- id: darwin-amd64-wasm
env:
- CGO_ENABLED=1
- GO111MODULE=on
- CC=o64-clang
- CXX=o64-clang++
goos:
- darwin
goarch:
- amd64
ldflags: -s -w -X github.com/GoogleContainerTools/kpt/run.version={{.Version}}

- id: darwin-arm64-wasm
env:
- CGO_ENABLED=1
- GO111MODULE=on
- CC=oa64-clang
- CXX=oa64-clang++
goos:
- darwin
goarch:
- arm64
ldflags: -s -w -X github.com/GoogleContainerTools/kpt/run.version={{.Version}}

- id: linux-amd64-wasm
env:
- CGO_ENABLED=1
- GO111MODULE=on
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
goos:
- linux
goarch:
- amd64
ldflags: -s -w -X github.com/GoogleContainerTools/kpt/run.version={{.Version}} -extldflags "-z noexecstack"

- id: linux-arm64-wasm
env:
- CGO_ENABLED=1
- GO111MODULE=on
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
goos:
- linux
goarch:
- arm64
ldflags: -s -w -X github.com/GoogleContainerTools/kpt/run.version={{.Version}} -extldflags "-z noexecstack"

dockers:
- ids:
- linux-amd64
Expand All @@ -133,16 +85,6 @@ archives:
- LICENSES*
- lib.zip*
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}-{{ .Version }}"
- id: archived-wasm
builds:
- darwin-amd64-wasm
- darwin-arm64-wasm
- linux-amd64-wasm
- linux-arm64-wasm
files:
- LICENSES*
- lib.zip*
name_template: "{{ .ProjectName }}_wasm_{{ .Os }}_{{ .Arch }}-{{ .Version }}"
- id: bin-only
format: binary
builds:
Expand All @@ -151,14 +93,6 @@ archives:
- linux-amd64
- linux-arm64
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
- id: bin-only-wasm
format: binary
builds:
- darwin-amd64-wasm
- darwin-arm64-wasm
- linux-amd64-wasm
- linux-arm64-wasm
name_template: "{{ .ProjectName }}_wasm_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: "checksums.txt"
snapshot:
Expand Down

0 comments on commit 5108bca

Please sign in to comment.