File tree Expand file tree Collapse file tree 2 files changed +24
-15
lines changed
Expand file tree Collapse file tree 2 files changed +24
-15
lines changed Original file line number Diff line number Diff line change 2121 - uses : actions/setup-python@v3
2222 - uses : pre-commit/action@v3.0.1
2323
24+ goreleaser-build :
25+ runs-on : ubuntu-latest
26+ steps :
27+ - name : Set up Go
28+ uses : actions/setup-go@v4
29+ with :
30+ go-version : ' 1.25.0'
31+ - name : Checkout code
32+ uses : actions/checkout@v3
33+ with :
34+ fetch-depth : 0
35+ - name : Run GoReleaser
36+ uses : goreleaser/goreleaser-action@v4
37+ with :
38+ version : latest
39+ args : release --snapshot --clean --config .goreleaser.yml --skip=publish
40+
2441 go-tests :
2542 runs-on : ubuntu-latest
2643 needs : pre-commit
Original file line number Diff line number Diff line change 11# .goreleaser.yaml
2+ version : 2
23project_name : tau
34release :
45 # Repo in which the release will be created.
@@ -66,28 +67,23 @@ builds:
6667 tags :
6768 - odo
6869 ldflags :
69- - |
70- -s -w \
71- -X github.com/taubyte/tau/cli/app.Version={{ .Version }} \
72- -X github.com/taubyte/tau/cli/app.Commit={{ .ShortCommit }} \
73- -X github.com/taubyte/tau/cli/app.BuildDate={{ .Date }}
70+ - -s -w -X github.com/taubyte/tau/cli/app.Version={{ .Version }} -X github.com/taubyte/tau/cli/app.Commit={{ .ShortCommit }} -X github.com/taubyte/tau/cli/app.BuildDate={{ .Date }}
7471 - main : " main.go"
7572 id : darwin
7673 binary : " tau"
7774 goos :
7875 - darwin
76+ goarch :
77+ - amd64
78+ - arm64
7979 env :
8080 - CGO_ENABLED=0
8181 - GOAMD64=v2
8282 tags :
8383 - darwin
8484 - odo
8585 ldflags :
86- - |
87- -s -w \
88- -X github.com/taubyte/tau/cli/app.Version={{ .Version }} \
89- -X github.com/taubyte/tau/cli/app.Commit={{ .ShortCommit }} \
90- -X github.com/taubyte/tau/cli/app.BuildDate={{ .Date }}
86+ - -s -w -X github.com/taubyte/tau/cli/app.Version={{ .Version }} -X github.com/taubyte/tau/cli/app.Commit={{ .ShortCommit }} -X github.com/taubyte/tau/cli/app.BuildDate={{ .Date }}
9187 - main : " main.go"
9288 id : windows
9389 binary : " tau"
@@ -101,11 +97,7 @@ builds:
10197 tags :
10298 - windows
10399 ldflags :
104- - |
105- -s -w \
106- -X github.com/taubyte/tau/cli/app.Version={{ .Version }} \
107- -X github.com/taubyte/tau/cli/app.Commit={{ .ShortCommit }} \
108- -X github.com/taubyte/tau/cli/app.BuildDate={{ .Date }}
100+ - -s -w -X github.com/taubyte/tau/cli/app.Version={{ .Version }} -X github.com/taubyte/tau/cli/app.Commit={{ .ShortCommit }} -X github.com/taubyte/tau/cli/app.BuildDate={{ .Date }}
109101
110102changelog :
111103 disable : true
You can’t perform that action at this time.
0 commit comments