From 5f3c76be00a9eb3882b1a4795a08f9fbe25f6b86 Mon Sep 17 00:00:00 2001 From: Moses Narrow <36607567+0pcom@users.noreply.github.com> Date: Sun, 11 Feb 2024 20:16:39 -0600 Subject: [PATCH] update release pipeline with skywire deployment archive (#1737) --- .goreleaser-linux.yml | 114 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) diff --git a/.goreleaser-linux.yml b/.goreleaser-linux.yml index f921f096ac..06caeea6de 100644 --- a/.goreleaser-linux.yml +++ b/.goreleaser-linux.yml @@ -17,6 +17,70 @@ before: - sed -i '/go conn.handleCall(msg)/c\conn.handleCall(msg)' ./vendor/github.com/godbus/dbus/v5/conn.go builds: + - id: skywire-deployment-amd64 + binary: skywire + goos: + - linux + goarch: + - amd64 + env: + - CGO_ENABLED=1 + - CC=/home/runner/work/skywire/skywire/musl-data/x86_64-linux-musl-cross/bin/x86_64-linux-musl-gcc + main: ./cmd/skywire-deployment/ + ldflags: -s -w -linkmode external -extldflags '-static' -buildid= -X github.com/skycoin/skywire-utilities/pkg/buildinfo.version=v{{.Version}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.commit={{.ShortCommit}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.date={{.Date}} -X github.com/skycoin/skywire/pkg/visor.BuildTag={{.Os}}_{{.Arch}} + + - id: skywire-deployment-arm64 + binary: skywire + goos: + - linux + goarch: + - arm64 + env: + - CGO_ENABLED=1 + - CC=/home/runner/work/skywire/skywire/musl-data/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc + main: ./cmd/skywire-deployment/ + ldflags: -s -w -linkmode external -extldflags '-static' -buildid= -X github.com/skycoin/skywire-utilities/pkg/buildinfo.version=v{{.Version}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.commit={{.ShortCommit}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.date={{.Date}} -X github.com/skycoin/skywire/pkg/visor.BuildTag={{.Os}}_{{.Arch}} + + - id: skywire-deployment-arm + binary: skywire + goos: + - linux + goarch: + - arm + goarm: + - 6 + env: + - CGO_ENABLED=1 + - CC=/home/runner/work/skywire/skywire/musl-data/arm-linux-musleabi-cross/bin/arm-linux-musleabi-gcc + main: ./cmd/skywire-deployment/ + ldflags: -s -w -linkmode external -extldflags '-static' -buildid= -X github.com/skycoin/skywire-utilities/pkg/buildinfo.version=v{{.Version}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.commit={{.ShortCommit}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.date={{.Date}} -X github.com/skycoin/skywire/pkg/visor.BuildTag={{.Os}}_{{.Arch}} + + - id: skywire-deployment-armhf + binary: skywire + goos: + - linux + goarch: + - arm + goarm: + - 7 + env: + - CGO_ENABLED=1 + - CC=/home/runner/work/skywire/skywire/musl-data/arm-linux-musleabihf-cross/bin/arm-linux-musleabihf-gcc + main: ./cmd/skywire-deployment/ + ldflags: -s -w -linkmode external -extldflags '-static' -buildid= -X github.com/skycoin/skywire-utilities/pkg/buildinfo.version=v{{.Version}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.commit={{.ShortCommit}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.date={{.Date}} -X github.com/skycoin/skywire/pkg/visor.BuildTag={{.Os}}_{{.Arch}} + + - id: skywire-deployment-riscv64 + binary: skywire + goos: + - linux + goarch: + - riscv64 + env: + - CGO_ENABLED=1 + - CC=/home/runner/work/skywire/skywire/musl-data/riscv64-linux-musl-cross/bin/riscv64-linux-musl-gcc + main: ./cmd/skywire-deployment/ + ldflags: -s -w -linkmode external -extldflags '-static' -buildid= -X github.com/skycoin/skywire-utilities/pkg/buildinfo.version=v{{.Version}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.commit={{.ShortCommit}} -X github.com/skycoin/skywire-utilities/pkg/buildinfo.date={{.Date}} -X github.com/skycoin/skywire/pkg/visor.BuildTag={{.Os}}_{{.Arch}} + - id: skywire-visor-amd64 binary: skywire-visor goos: @@ -546,6 +610,56 @@ archives: - vpn-server-riscv64 - vpn-client-riscv64 + - id: amd64 + format: tar.gz + wrap_in_directory: false + name_template: 'skywire-deployment-v{{ .Version }}-{{ .Os }}-{{ .Arch }}' + files: + - dmsghttp-config.json + - services-config.json + builds: + - skywire-deployment-amd64 + + - id: arm64 + format: tar.gz + wrap_in_directory: false + name_template: 'skywire-deployment-v{{ .Version }}-{{ .Os }}-{{ .Arch }}' + files: + - dmsghttp-config.json + - services-config.json + builds: + - skywire-deployment-arm64 + + - id: arm + format: tar.gz + wrap_in_directory: false + name_template: 'skywire-deployment-v{{ .Version }}-{{ .Os }}-{{ .Arch }}' + files: + - dmsghttp-config.json + - services-config.json + builds: + - skywire-deployment-arm + + - id: armhf + format: tar.gz + wrap_in_directory: false + name_template: 'skywire-v{{ .Version }}-{{ .Os }}-{{ .Arch }}hf' + files: + - dmsghttp-config.json + - services-config.json + builds: + - skywire-deployment-armhf + + - id: riscv64 + format: tar.gz + wrap_in_directory: false + name_template: 'skywire-v{{ .Version }}-{{ .Os }}-{{ .Arch }}' + files: + - dmsghttp-config.json + - services-config.json + builds: + - skywire-deployment-riscv64 + checksum: name_template: 'checksums.txt' snapshot: