Skip to content

Commit 4b271ea

Browse files
committed
ci: update make targets
Signed-off-by: Arjun Raja Yogidas <[email protected]>
1 parent 5887d3b commit 4b271ea

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/release-automation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
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 }}

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@ PACKAGE := github.com/runfinch/finch-daemon
1717
VERSION := $(shell git describe --match 'v[0-9]*' --dirty='.modified' --always --tags)
1818
GITCOMMIT := $(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+
2024
LDFLAGS := -X $(PACKAGE)/version.Version=$(VERSION) -X $(PACKAGE)/version.GitCommit=$(GITCOMMIT)
2125

26+
# LDFLAGS += $(EXTRA_LDFLAGS)
27+
2228
ifeq ($(STATIC),)
2329
GO_BUILDTAGS := osusergo netgo
2430
LDFLAGS += -extldflags '-static'
@@ -31,6 +37,10 @@ endif
3137
build:
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
3545
linux:
3646
ifneq ($(shell uname), Linux)

0 commit comments

Comments
 (0)