diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 02fe90ad..50779879 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -23,6 +23,8 @@ jobs: - uses: actions/setup-go@v4 with: go-version: v1.23.0 + - name: SET LDFLAGS + run: $(make ldflags) >> $GITHUB_ENV - name: Delete non-semver tags run: 'git tag -d $(git tag -l | grep -v "^v")' - name: Run GoReleaser on tag diff --git a/Makefile b/Makefile index f3801e3a..910ce1c7 100644 --- a/Makefile +++ b/Makefile @@ -117,6 +117,9 @@ build: goreleaser: LDFLAGS=$(LDFLAGS) goreleaser +ldflags: + @echo $(LDFLAGS) + build-%: @$(MAKE) --no-print-directory OS=$(word 1,$(subst -, ,$*)) ARCH=$(word 2,$(subst -, ,$*)) build