Skip to content

Commit

Permalink
ci: Include version number in windows runner build
Browse files Browse the repository at this point in the history
  • Loading branch information
Crown0815 committed Nov 10, 2024
1 parent feda446 commit e099ca4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ jobs:
- name: Build for ${{matrix.architecture}}
run: |
env GOOS=windows GOARCH=${{matrix.architecture}} \
go build -o forgejo-runner-windows-${{matrix.architecture}}.exe
go build \
LDFLAGS ?= -X "gitea.com/gitea/act_runner/internal/pkg/ver.version=v$(RELASE_VERSION)"
-ldflags "-s -w -X gitea.com/gitea/act_runner/internal/pkg/ver.version=${{ github.ref_name }}" \
-o forgejo-runner-windows-${{matrix.architecture}}.exe
- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit e099ca4

Please sign in to comment.