mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
c46c1a7128
* build: use goreleaser to cross-compile binaries for all platforms and archs The main motivation behind it is because "gox" is unmaintained and archived and it does not support "linux/riscv64" as a target. Right now, goreleaser is only building the binaries, and I've tried to replicate the exact same way the old script does. In the future, if so desired, goreleaser could be used to further automate the build and release pipeline by creating the release in GitHub. * build: create binaries and OCI image for linux/riscv64
47 lines
723 B
YAML
47 lines
723 B
YAML
version: 2
|
|
|
|
dist: build
|
|
|
|
builds:
|
|
- id: yq
|
|
|
|
binary: yq_{{ .Os }}_{{ .Arch }}
|
|
|
|
ldflags:
|
|
- -s -w
|
|
|
|
env:
|
|
- CGO_ENABLED=0
|
|
|
|
targets:
|
|
- darwin_amd64
|
|
- darwin_arm64
|
|
- freebsd_386
|
|
- freebsd_amd64
|
|
- freebsd_arm
|
|
- linux_386
|
|
- linux_amd64
|
|
- linux_arm
|
|
- linux_arm64
|
|
- linux_mips
|
|
- linux_mips64
|
|
- linux_mips64le
|
|
- linux_mipsle
|
|
- linux_ppc64
|
|
- linux_ppc64le
|
|
- linux_riscv64
|
|
- linux_s390x
|
|
- netbsd_386
|
|
- netbsd_amd64
|
|
- netbsd_arm
|
|
- openbsd_386
|
|
- openbsd_amd64
|
|
- windows_386
|
|
- windows_amd64
|
|
|
|
no_unique_dist_dir: true
|
|
|
|
release:
|
|
disable: true
|
|
skip_upload: true
|