From 73f0bfd7c77c973b29ea92226810d86685679d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Michel?= Date: Fri, 15 Dec 2023 15:19:25 +0000 Subject: [PATCH] remove global linux goreleaser build file and fix checksums file name --- .goreleaser-linux-amd64.yml | 2 +- .goreleaser-linux-arm64.yml | 2 +- .goreleaser-linux.yml | 90 ------------------------------------- 3 files changed, 2 insertions(+), 92 deletions(-) delete mode 100644 .goreleaser-linux.yml diff --git a/.goreleaser-linux-amd64.yml b/.goreleaser-linux-amd64.yml index 51f16fb..bd6dd74 100644 --- a/.goreleaser-linux-amd64.yml +++ b/.goreleaser-linux-amd64.yml @@ -82,4 +82,4 @@ changelog: - "^test:" checksum: - name_template: '{{ .ProjectName }}_{{ .Version }}_linux_checksums.txt' \ No newline at end of file + name_template: '{{ .ProjectName }}_{{ .Version }}_linux_{{ .Arch }}_checksums.txt' \ No newline at end of file diff --git a/.goreleaser-linux-arm64.yml b/.goreleaser-linux-arm64.yml index 1666bc8..7c3d214 100644 --- a/.goreleaser-linux-arm64.yml +++ b/.goreleaser-linux-arm64.yml @@ -72,4 +72,4 @@ changelog: - "^test:" checksum: - name_template: '{{ .ProjectName }}_{{ .Version }}_linux_checksums.txt' \ No newline at end of file + name_template: '{{ .ProjectName }}_{{ .Version }}_linux_{{ .Arch }}_checksums.txt' \ No newline at end of file diff --git a/.goreleaser-linux.yml b/.goreleaser-linux.yml deleted file mode 100644 index 791af41..0000000 --- a/.goreleaser-linux.yml +++ /dev/null @@ -1,90 +0,0 @@ -# This is an example .goreleaser.yml file with some sensible defaults. -# Make sure to check the documentation at https://goreleaser.com - -# The lines below are called `modelines`. See `:help modeline` -# Feel free to remove those if you don't want/need to use them. -# yaml-language-server: $schema=https://goreleaser.com/static/schema.json -# vim: set ts=2 sw=2 tw=0 fo=cnqoj - -version: 1 - -before: - hooks: - # You may remove this if you don't use go modules. - - go mod tidy - # you may remove this if you don't need go generate - - go generate ./... - -builds: - - - id: "ssh3" - main: ./cli/client/main.go - binary: ssh3 - goos: - - linux - goarch: - - amd64 - - arm64 - tags: - - osusergo - - netgo - - static_build - - feature - ldflags: - - -linkmode=external - - -extldflags=-static - - - id: "ssh3-server" - main: ./cli/server/main.go - binary: ssh3-server - env: - - CGO_ENABLED=1 - - CC=/usr/local/musl/bin/musl-gcc - - CGO_CFLAGS=-I/usr/local/musl/include/ - goos: - - linux - goarch: - - amd64 - - arm64 - hooks: - pre: - - sudo cp /usr/bin/{{ .Arch }}-ld /usr/bin/ld - overrides: - - goos: linux - goarch: arm64 - env: - - CC=/tmp/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc - - CGO_ENABLED=1 - - CGO_CFLAGS= - ldflags: - - -extld=/tmp/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc - - -extldflags=-static - - -linkmode=external - tags: - - osusergo - - netgo - - static_build - - feature - ldflags: - - -extldflags=-static - - -linkmode=external - -archives: - - format: tar.gz - name_template: >- - {{ .ProjectName }}_ - {{- .Version }}_linux_ - {{- if eq .Arch "amd64" }}x86_64 - {{- else if eq .Arch "386" }}i386 - {{- else }}{{ .Arch }}{{ end }} - {{- if .Arm }}v{{ .Arm }}{{ end }} - -changelog: - sort: asc - filters: - exclude: - - "^docs:" - - "^test:" - -checksum: - name_template: '{{ .ProjectName }}_{{ .Version }}_linux_checksums.txt' \ No newline at end of file