From dd84b9d64fb98746a230cd24233ff50a562c39c9 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 28 Apr 2023 01:36:44 +0800 Subject: --- cli/cross-release.yml | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 cli/cross-release.yml (limited to 'cli/cross-release.yml') diff --git a/cli/cross-release.yml b/cli/cross-release.yml new file mode 100644 index 0000000..18e449f --- /dev/null +++ b/cli/cross-release.yml @@ -0,0 +1,61 @@ +project_name: turbo +before: + hooks: + - make compile-protos + - go mod tidy + +dist: dist-cross + +builds: + - id: turbo + main: ./cmd/turbo + tags: + - rust + - staticbinary + binary: bin/go-turbo + flags: + - -trimpath + ldflags: + - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser + mod_timestamp: "{{ .CommitTimestamp }}" + env: + - CGO_ENABLED=1 + hooks: + pre: + - cmd: make turborepo-ffi-install-{{ .Os }}-{{ .Arch }} + output: true + targets: + - linux_arm64 + - linux_amd64 + - windows_amd64 + overrides: + - goos: linux + goarch: arm64 + ldflags: -linkmode external -extldflags="-static" -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser + env: + - CC=zig cc -target aarch64-linux-musl + - CXX=zig c++ -target aarch64-linux-musl + - goos: linux + goarch: amd64 + goamd64: v1 + ldflags: -linkmode external -extldflags="-static" -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser + env: + - CC=zig cc -target x86_64-linux-musl + - CXX=zig c++ -target x86_64-linux-musl + - goos: windows + goarch: arm64 + env: + - CC=/llvm-mingw/llvm-mingw/bin/aarch64-w64-mingw32-gcc + - CXX=/llvm-mingw/llvm-mingw/bin/aarch64-w64-mingw32-g++ + - goos: windows + goarch: amd64 + goamd64: v1 + env: + - CC=x86_64-w64-mingw32-gcc + - CXX=x86_64-w64-mingw32-g++ + +archives: + - format: binary + +release: + disable: true -- cgit v1.2.3-70-g09d2