File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 2222 uses : " WyriHaximus/github-action-get-previous-tag@04e8485ecb6487243907e330d522ff60f02283ce" # v1.4.0
2323 generate-artifacts :
2424 needs : get-latest-tag
25- runs-on : ubuntu-22 .04
25+ runs-on : ubuntu-20 .04
2626 env :
2727 # Set during setup.
2828 RELEASE_TAG : ${{ needs.get-latest-tag.outputs.tag }}
Original file line number Diff line number Diff line change @@ -17,8 +17,14 @@ PACKAGE := github.com/runfinch/finch-daemon
1717VERSION := $(shell git describe --match 'v[0-9]* ' --dirty='.modified' --always --tags)
1818GITCOMMIT := $(shell git rev-parse HEAD)$(shell if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi)
1919
20+ ifndef GODEBUG
21+ EXTRA_LDFLAGS += -s -w
22+ endif
23+
2024LDFLAGS := -X $(PACKAGE ) /version.Version=$(VERSION ) -X $(PACKAGE ) /version.GitCommit=$(GITCOMMIT )
2125
26+ LDFLAGS += $(EXTRA_LDFLAGS )
27+
2228ifeq ($(STATIC ) ,)
2329 GO_BUILDTAGS := osusergo netgo
2430 LDFLAGS += -extldflags '-static'
3137build :
3238 GOOS=linux go build $(if $(GO_BUILDTAGS ) , -tags "$(GO_BUILDTAGS ) ") -ldflags " $( LDFLAGS) " -v -o $(BINARY ) $(PACKAGE ) /cmd/finch-daemon
3339
40+ clean :
41+ @rm -f $(BINARIES )
42+ @rm -rf $(BIN )
43+
3444.PHONY : linux
3545linux :
3646ifneq ($(shell uname) , Linux)
You can’t perform that action at this time.
0 commit comments