From d4dd6395b21ca2122e946925db7e72849fb0fdd4 Mon Sep 17 00:00:00 2001 From: Moses Narrow <36607567+0pcom@users.noreply.github.com> Date: Fri, 14 Jul 2023 09:26:45 -0500 Subject: [PATCH] update .goreleaser .yaml files --- .goreleaser-archlinux.yml | 2 +- .goreleaser-darwin.yml | 2 +- .goreleaser-linux.yml | 561 +++++++++++++++++++++++++++++++++++--- .goreleaser-windows.yml | 2 +- 4 files changed, 533 insertions(+), 34 deletions(-) diff --git a/.goreleaser-archlinux.yml b/.goreleaser-archlinux.yml index 4ce8e1604d..761aad8c6a 100644 --- a/.goreleaser-archlinux.yml +++ b/.goreleaser-archlinux.yml @@ -6,7 +6,7 @@ release: # Default is extracted from the origin remote URL or empty if its private hosted. # Note: it can only be one: either github or gitlab or gitea github: - owner: ${{ env.GITHUB_REPOSITORY_OWNER }} + owner: ${{ Env.GITHUB_REPOSITORY_OWNER }} name: skywire diff --git a/.goreleaser-darwin.yml b/.goreleaser-darwin.yml index fc59a8fe08..7aacf2a5f9 100644 --- a/.goreleaser-darwin.yml +++ b/.goreleaser-darwin.yml @@ -6,7 +6,7 @@ release: # Default is extracted from the origin remote URL or empty if its private hosted. # Note: it can only be one: either github or gitlab or gitea github: - owner: ${{ env.GITHUB_REPOSITORY_OWNER }} + owner: ${{ Env.GITHUB_REPOSITORY_OWNER }} name: skywire #prerelease: true diff --git a/.goreleaser-linux.yml b/.goreleaser-linux.yml index 647a16ac4b..a453946c2b 100644 --- a/.goreleaser-linux.yml +++ b/.goreleaser-linux.yml @@ -1,54 +1,553 @@ # This is an example goreleaser.yaml file with some sane defaults. # Make sure to check the documentation at http://goreleaser.com + release: - github: - owner: ${{ env.GITHUB_REPOSITORY_OWNER }} + # Repo in which the release will be created. + # Default is extracted from the origin remote URL or empty if its private hosted. + # Note: it can only be one: either github or gitlab or gitea + github: + owner: ${{ Env.GITHUB_REPOSITORY_OWNER }} name: skywire + #prerelease: true + before: hooks: - go mod tidy - sed -i '/go conn.handleCall(msg)/c\conn.handleCall(msg)' ./vendor/github.com/godbus/dbus/v5/conn.go - builds: -{{- range .Builds }} - - id: {{ .ID }} - binary: {{ .Binary }} + + - id: skywire-visor-amd64 + binary: skywire-visor + 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-visor/ + 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-arm64 + binary: skywire-visor + 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-visor/ + 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-arm + binary: skywire-visor + 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-visor/ + 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-armhf + binary: skywire-visor + 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-visor/ + 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-riscv64 + binary: skywire-visor + 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-visor/ + 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-cli-amd64 + binary: skywire-cli + 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-cli/ + 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-cli-arm64 + binary: skywire-cli goos: - linux goarch: -{{- range .GoArch }} - - {{ . }} -{{- end }} -{{- if .GoArm }} + - 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-cli/ + 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-cli-arm + binary: skywire-cli + 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-cli/ + 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-cli-armhf + binary: skywire-cli + goos: + - linux + goarch: + - arm goarm: -{{- range .GoArm }} - - {{ . }} -{{- end }} -{{- end }} + - 7 env: - CGO_ENABLED=1 - - CC=/home/runner/work/skywire/skywire/musl-data/{{ .CCPath }} - main: {{ .Main }} - 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}} -{{- end }} + - CC=/home/runner/work/skywire/skywire/musl-data/arm-linux-musleabihf-cross/bin/arm-linux-musleabihf-gcc + main: ./cmd/skywire-cli/ + 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-cli-riscv64 + binary: skywire-cli + 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-cli/ + 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: skychat-amd64 + binary: apps/skychat + 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/apps/skychat/ + 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}} + + - id: skychat-arm64 + binary: apps/skychat + 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/apps/skychat/ + 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}} + + - id: skychat-arm + binary: apps/skychat + 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/apps/skychat/ + 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}} + + - id: skychat-armhf + binary: apps/skychat + 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/apps/skychat/ + 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}} + + - id: skychat-riscv64 + binary: skychat + 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/apps/skychat/ + 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}} + + - id: skysocks-amd64 + binary: apps/skysocks + 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/apps/skysocks/ + 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}} + + - id: skysocks-arm64 + binary: apps/skysocks + 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/apps/skysocks/ + 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}} + + - id: skysocks-arm + binary: apps/skysocks + 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/apps/skysocks/ + 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}} + + - id: skysocks-armhf + binary: apps/skysocks + 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/apps/skysocks/ + 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}} + + - id: skysocks-riscv64 + binary: skysocks + 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/apps/skysocks/ + 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}} + + - id: skysocks-client-amd64 + binary: apps/skysocks-client + 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/apps/skysocks-client/ + 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}} + + - id: skysocks-client-arm64 + binary: apps/skysocks-client + 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/apps/skysocks-client/ + 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}} + + - id: skysocks-client-arm + binary: apps/skysocks-client + 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/apps/skysocks-client/ + 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}} + + - id: skysocks-client-armhf + binary: apps/skysocks-client + 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/apps/skysocks-client/ + 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}} + + - id: skysocks-client-riscv64 + binary: skysocks-client + 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/apps/skysocks-client/ + 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}} + + - id: vpn-server-amd64 + binary: apps/vpn-server + 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/apps/vpn-server/ + 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}} + + - id: vpn-server-arm64 + binary: apps/vpn-server + 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/apps/vpn-server/ + 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}} + + - id: vpn-server-arm + binary: apps/vpn-server + 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/apps/vpn-server/ + 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}} + + - id: vpn-server-armhf + binary: apps/vpn-server + 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/apps/vpn-server/ + 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}} + + - id: vpn-server-riscv64 + binary: vpn-server + 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/apps/vpn-server/ + 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}} + + - id: vpn-client-amd64 + binary: apps/vpn-client + 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/apps/vpn-client/ + 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}} + + - id: vpn-client-arm64 + binary: apps/vpn-client + 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/apps/vpn-client/ + 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}} + + - id: vpn-client-arm + binary: apps/vpn-client + 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/apps/vpn-client/ + 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}} + + - id: vpn-client-armhf + binary: apps/vpn-client + 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/apps/vpn-client/ + 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}} + + - id: vpn-client-riscv64 + binary: vpn-client + 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/apps/vpn-client/ + 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}} archives: -{{- range .Archives }} - - id: {{ .ID }} - format: {{ .Format }} + - id: amd64 + format: tar.gz + wrap_in_directory: false + name_template: 'skywire-v{{ .Version }}-{{ .Os }}-{{ .Arch }}' + files: + - dmsghttp-config.json + builds: + - skywire-visor-amd64 + - skywire-cli-amd64 + - skysocks-amd64 + - skysocks-client-amd64 + - skychat-amd64 + - vpn-server-amd64 + - vpn-client-amd64 + + - id: arm64 + format: tar.gz + wrap_in_directory: false + name_template: 'skywire-v{{ .Version }}-{{ .Os }}-{{ .Arch }}' + files: + - dmsghttp-config.json + builds: + - skywire-visor-arm64 + - skywire-cli-arm64 + - skysocks-arm64 + - skysocks-client-arm64 + - skychat-arm64 + - vpn-server-arm64 + - vpn-client-arm64 + + - id: arm + format: tar.gz wrap_in_directory: false name_template: 'skywire-v{{ .Version }}-{{ .Os }}-{{ .Arch }}' files: - dmsghttp-config.json builds: -{{- range .Builds }} - - {{ . }} -{{- end }} -{{- end }} -{{- end }} + - skywire-visor-arm + - skywire-cli-arm + - skysocks-arm + - skysocks-client-arm + - skychat-arm + - vpn-server-arm + - vpn-client-arm + + - id: armhf + format: tar.gz + wrap_in_directory: false + name_template: 'skywire-v{{ .Version }}-{{ .Os }}-{{ .Arch }}hf' + files: + - dmsghttp-config.json + builds: + - skywire-visor-armhf + - skywire-cli-armhf + - skysocks-armhf + - skysocks-client-armhf + - skychat-armhf + - vpn-server-armhf + - vpn-client-armhf + + - id: riscv64 + format: tar.gz + wrap_in_directory: false + name_template: 'skywire-v{{ .Version }}-{{ .Os }}-{{ .Arch }}' + files: + - dmsghttp-config.json + builds: + - skywire-visor-riscv64 + - skywire-cli-riscv64 + - skysocks-riscv64 + - skysocks-client-riscv64 + - skychat-riscv64 + - vpn-server-riscv64 + - vpn-client-riscv64 + +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' diff --git a/.goreleaser-windows.yml b/.goreleaser-windows.yml index 81212bba0c..ca516dc31f 100644 --- a/.goreleaser-windows.yml +++ b/.goreleaser-windows.yml @@ -6,7 +6,7 @@ release: # Default is extracted from the origin remote URL or empty if its private hosted. # Note: it can only be one: either github or gitlab or gitea github: - owner: ${{ env.GITHUB_REPOSITORY_OWNER }} + owner: ${{ Env.GITHUB_REPOSITORY_OWNER }} name: skywire #prerelease: true