diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 0cde98d..6ecbb29 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -23,8 +23,6 @@ builds: goarch: - arm64 env: - - PKG_CONFIG_SYSROOT_DIR=/sysroot/macos/arm64 - - PKG_CONFIG_PATH=/sysroot/macos/arm64/usr/local/lib/pkgconfig - CC=oa64-clang - CXX=oa64-clang++ flags: @@ -43,10 +41,62 @@ builds: env: - CC=arm-linux-gnueabihf-gcc - CXX=arm-linux-gnueabihf-g++ - - CGO_CFLAGS=--sysroot=/sysroot/linux/armhf - - CGO_LDFLAGS=--sysroot=/sysroot/linux/armhf - - PKG_CONFIG_SYSROOT_DIR=/sysroot/linux/armhf - - PKG_CONFIG_PATH=/sysroot/linux/armhf/opt/vc/lib/pkgconfig:/sysroot/linux/armhf/usr/lib/arm-linux-gnueabihf/pkgconfig:/sysroot/linux/armhf/usr/lib/pkgconfig:/sysroot/linux/armhf/usr/local/lib/pkgconfig + flags: + - -mod=readonly + ldflags: + - -s -w -X main.version={{.Version}} + - id: linux-arm64 + main: ./ + binary: liquidswards + goos: + - linux + goarch: + - amd64 + env: + - CC=x86_64-linux-gnu-gcc + - CXX=x86_64-linux-gnu-g++ + flags: + - -mod=readonly + ldflags: + - -s -w -X main.version={{.Version}} + - id: linux-amd64 + main: ./ + binary: liquidswards + goos: + - linux + goarch: + - amd64 + env: + - CC=x86_64-linux-gnu-gcc + - CXX=x86_64-linux-gnu-g++ + flags: + - -mod=readonly + ldflags: + - -s -w -X main.version={{.Version}} + - id: windows-amd64 + main: ./ + binary: liquidswards + goos: + - windows + goarch: + - amd64 + env: + - CC=x86_64-w64-mingw32-gcc + - CXX=x86_64-w64-mingw32-g++ + flags: + - -mod=readonly + ldflags: + - -s -w -X main.version={{.Version}} + - id: windows-arm64 + main: ./ + binary: liquidswards + goos: + - windows + goarch: + - arm64 + env: + - CC=/llvm-mingw/bin/aarch64-w64-mingw32-gcc + - CXX=/llvm-mingw/bin/aarch64-w64-mingw32-g++ flags: - -mod=readonly ldflags: @@ -68,7 +118,7 @@ archives: checksum: name_template: 'checksums.txt' snapshot: - name_template: "{{ .Tag }}" + name_template: "{{ incpatch .Version }}-next" changelog: sort: asc filters: