Skip to content

Commit 506a1ca

Browse files
committed
refactor goarch=386 because of go-selfupdate
1 parent 8d64b95 commit 506a1ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
- operating-system: ubuntu-18.04
1515
- operating-system: windows-2019
1616
arch: -386
17+
goarch: 386 # 32bit architecture (for support)
1718
ext: ".exe"
1819
- operating-system: windows-2019
1920
arch: -amd64
@@ -35,7 +36,8 @@ jobs:
3536
- name: Set env vars
3637
run: |
3738
echo "TAG_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
38-
echo $(go env GOPATH)/bin >> $GITHUB_PATH
39+
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
40+
echo "GOARCH:=${{ matrix.goarch }}" >> $GITHUB_ENV
3941
4042
- name: Identify Prerelease
4143
# This is a workaround while waiting for create-release action to implement auto pre-release based on tag
@@ -100,7 +102,6 @@ jobs:
100102
# building the agent for win requires a different task because of an extra flag
101103
- name: Build the Agent for win32
102104
env:
103-
GOARCH: 386 # 32bit architecture (for support)
104105
GO386: 387 # support old instruction sets without MMX (used in the Pentium 4) (will be deprecated in GO > 1.15 https://golang.org/doc/go1.15)
105106
run: task build-win
106107
if: matrix.operating-system == 'windows-2019' && matrix.arch == '-386'

0 commit comments

Comments
 (0)