diff options
| author | 2023-04-28 01:36:44 +0800 | |
|---|---|---|
| committer | 2023-04-28 01:36:44 +0800 | |
| commit | dd84b9d64fb98746a230cd24233ff50a562c39c9 (patch) | |
| tree | b583261ef00b3afe72ec4d6dacb31e57779a6faf /cli/cross-release.yml | |
| parent | 0b46fcd72ac34382387b2bcf9095233efbcc52f4 (diff) | |
| download | HydroRoll-dd84b9d64fb98746a230cd24233ff50a562c39c9.tar.gz HydroRoll-dd84b9d64fb98746a230cd24233ff50a562c39c9.zip | |
Diffstat (limited to 'cli/cross-release.yml')
| -rw-r--r-- | cli/cross-release.yml | 61 |
1 files changed, 61 insertions, 0 deletions
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 |
