Merge pull request 'Include tag version number in windows runners' (#318) from windows/runner:main into main

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/318
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
pull/319/head
earl-warren 2024-11-10 13:53:51 +00:00
commit 1b688b7c5e
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@ 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 "-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: