Skip to content

Commit 584bf2d

Browse files
committed
build windows version for 32bit instead of 64bit (compatibility)
1 parent 4e6a08c commit 584bf2d

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ jobs:
6060
run: task build-cli
6161
if: matrix.operating-system == 'ubuntu-latest'
6262

63-
- name: Build the Agent for win
64-
run: task build-win
63+
- name: Build the Agent for win32
64+
env:
65+
GOARCH: 386 # 32bit architecture
66+
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)
67+
run: task build-win32
6568
if: matrix.operating-system == 'windows-latest'
6669

6770
- name: Upload artifacts

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ jobs:
4949
run: task build
5050
if: matrix.operating-system != 'windows-latest'
5151

52-
- name: Build the Agent for win
53-
run: task build-win
52+
- name: Build the Agent for win32
53+
run: task build-win32
5454
if: matrix.operating-system == 'windows-latest'
5555

5656
- name: Run unit tests

Taskfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ tasks:
1212
cmds:
1313
- go build -v -i -tags cli -o {{.APP_NAME}}_cli {{.LDFLAGS}}
1414

15-
build-win:
16-
desc: Build the project for win
15+
build-win32:
16+
desc: Build the project for win 32 bit
1717
cmds:
1818
- go get github.com/akavel/rsrc
1919
- rsrc -arch=386 -manifest=manifest.xml

0 commit comments

Comments
 (0)