ci: Include version number in windows runner build

pull/318/head
Felix Kröner 2024-11-10 13:39:26 +01:00
parent f6626f09d5
commit 0fb825f8e7
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@ jobs:
- name: Build for ${{matrix.architecture}} - name: Build for ${{matrix.architecture}}
run: | run: |
env GOOS=windows GOARCH=${{matrix.architecture}} \ 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 - uses: actions/upload-artifact@v4
with: with: