Skip to content

Commit 8025736

Browse files
committed
add another win CI matrix to build win 32-64
1 parent d9bcad4 commit 8025736

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ jobs:
77
test-matrix:
88
strategy:
99
matrix:
10-
operating-system: [ubuntu-18.04, windows-2019, macos-10.15]
10+
operating-system: [ubuntu-18.04, windows-2019, windows-2019, macos-10.15]
11+
include:
12+
- operating-system: windows-2019
13+
arch: 386
14+
- operating-system: windows-2019
15+
arch: amd64
1116

1217
runs-on: ${{ matrix.operating-system }}
1318

@@ -70,11 +75,11 @@ jobs:
7075
GOARCH: 386 # 32bit architecture (for support)
7176
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)
7277
run: task build-win
73-
if: matrix.operating-system == 'windows-2019'
78+
if: matrix.operating-system == 'windows-2019' || matrix.arch == '386'
7479

7580
- name: Build the Agent for win64
7681
run: task build-win # GOARCH=amd64 by default on the runners
77-
if: matrix.operating-system == 'windows-2019'
82+
if: matrix.operating-system == 'windows-2019' || matrix.arch == 'amd64'
7883

7984
- name: Build the Agent for macos
8085
env:
@@ -88,7 +93,7 @@ jobs:
8893
- name: Upload artifacts
8994
uses: actions/upload-artifact@v2
9095
with:
91-
name: arduino-create-agent-${{ matrix.operating-system }}
96+
name: arduino-create-agent-${{ matrix.operating-system }}${{ matrix.arch }}
9297
path: |
9398
arduino-create-agent*
9499
config.ini

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ tasks:
2424
- rsrc -arch {{.GOARCH}} -manifest manifest.xml # GOARCH shoud be either amd64 or 386
2525
- task: build
2626
vars:
27-
APP_NAME: arduino-create-agent_{{.GOARCH}}.exe
27+
APP_NAME: arduino-create-agent.exe
2828
WIN_FLAGS: -H=windowsgui
2929
- rm *.syso # rm file to avoid compilation problems on other platforms
3030

0 commit comments

Comments
 (0)