Skip to content

Commit

Permalink
set ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
mjudeikis committed Nov 26, 2024
1 parent 9da2b45 commit 307a835
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 307a835

Please sign in to comment.