forked from vercel/turborepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cross-release.yml
53 lines (49 loc) · 1.17 KB
/
cross-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
project_name: turbo
before:
hooks:
- make compile-protos
- go mod tidy
dist: dist-cross
builds:
- id: turbo
main: ./cmd/turbo
binary: bin/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
targets:
- linux_arm64
- linux_amd64
- windows_arm64
- windows_amd64
overrides:
- goos: linux
goarch: arm64
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
- goos: linux
goarch: amd64
goamd64: v1
env:
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
- 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