Skip to content

Commit 3398ea8

Browse files
authored
Refactor Go build command in workflow
Updated build and sign workflow to use -ldflags for Go build.
1 parent 655551a commit 3398ea8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/sign-in-env-gha-ast.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
- name: Build application
4343
shell: bash
4444
run: |
45-
GOARCH=amd64 go build -o -s -w -X main.AppVersion==${{ github.event.inputs.release_name }} -o rmstale-amd64.exe ./rmstale.go
46-
GOARCH=arm64 go build -o -s -w -X main.AppVersion==${{ github.event.inputs.release_name }} -o rmstale-arm64.exe ./rmstale.go
45+
GOARCH=amd64 go build -ldflags="-s -w -X main.AppVersion==${{ github.event.inputs.release_name }}" -o rmstale-amd64.exe ./rmstale.go
46+
GOARCH=arm64 go build -ldflags="-s -w -X main.AppVersion==${{ github.event.inputs.release_name }}" -o rmstale-arm64.exe ./rmstale.go
4747
4848
- name: Upload artifacts
4949
uses: actions/upload-artifact@v4
@@ -97,3 +97,4 @@ jobs:
9797
9898
9999
100+

0 commit comments

Comments
 (0)