diff options
author | Earl Warren <contact@earl-warren.org> | 2023-04-30 18:13:11 +0200 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2023-08-23 14:44:47 +0200 |
commit | e9ba98411e4b1b805e5c2900765d5dbbcb11dcad (patch) | |
tree | 6094ce91214bc4d3bea3ce63afe18083486a3596 /Makefile | |
parent | [FORGEJO] delete files conflicting with Forgejo (diff) | |
download | forgejo-runner-e9ba98411e4b1b805e5c2900765d5dbbcb11dcad.tar.xz forgejo-runner-e9ba98411e4b1b805e5c2900765d5dbbcb11dcad.zip |
[FORGEJO] build forgejo-runner
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -1,5 +1,5 @@ DIST := dist -EXECUTABLE := act_runner +EXECUTABLE := forgejo-runner GOFMT ?= gofumpt -l DIST := dist DIST_DIRS := $(DIST)/binaries $(DIST)/release @@ -21,11 +21,7 @@ DOCKER_TAG ?= nightly DOCKER_REF := $(DOCKER_IMAGE):$(DOCKER_TAG) DOCKER_ROOTLESS_REF := $(DOCKER_IMAGE):$(DOCKER_TAG)-dind-rootless -ifneq ($(shell uname), Darwin) - EXTLDFLAGS = -extldflags "-static" $(null) -else - EXTLDFLAGS = -endif +EXTLDFLAGS = -extldflags "-static" $(null) ifeq ($(HAS_GO), GO) GOPATH ?= $(shell $(GO) env GOPATH) @@ -117,7 +113,7 @@ install: $(GOFILES) build: go-check $(EXECUTABLE) $(EXECUTABLE): $(GOFILES) - $(GO) build -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)' -o $@ + $(GO) build -v -tags 'netgo osusergo $(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)' -o $@ .PHONY: deps-backend deps-backend: |