diff options
author | earl-warren <earl-warren@noreply.code.forgejo.org> | 2024-11-10 14:53:51 +0100 |
---|---|---|
committer | earl-warren <earl-warren@noreply.code.forgejo.org> | 2024-11-10 14:53:51 +0100 |
commit | 1b688b7c5e42ec173d8a385744081a460e033f7d (patch) | |
tree | 58bcb2c4e86b193b9c82dedf62fc4073d8aba4fb | |
parent | fix: dockerfile casing typo (diff) | |
parent | ci: Include version number in windows runner build (diff) | |
download | forgejo-runner-1b688b7c5e42ec173d8a385744081a460e033f7d.tar.xz forgejo-runner-1b688b7c5e42ec173d8a385744081a460e033f7d.zip |
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>
-rw-r--r-- | .github/workflows/build-release.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 8086590..4524591 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -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: |