13
13
include :
14
14
- operating-system : ubuntu-18.04
15
15
- operating-system : windows-2019
16
- arch : 386
16
+ arch : - 386
17
17
- operating-system : windows-2019
18
- arch : amd64
18
+ arch : - amd64
19
19
- operating-system : macos-10.15
20
20
21
21
runs-on : ${{ matrix.operating-system }}
@@ -81,11 +81,11 @@ jobs:
81
81
GOARCH : 386 # 32bit architecture (for support)
82
82
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)
83
83
run : task build-win
84
- if : matrix.operating-system == 'windows-2019' && matrix.arch == '386'
84
+ if : matrix.operating-system == 'windows-2019' && matrix.arch == '- 386'
85
85
86
86
- name : Build the Agent for win64
87
87
run : task build-win # GOARCH=amd64 by default on the runners
88
- if : matrix.operating-system == 'windows-2019' && matrix.arch == 'amd64'
88
+ if : matrix.operating-system == 'windows-2019' && matrix.arch == '- amd64'
89
89
90
90
- name : Build the Agent for macos
91
91
env :
@@ -192,13 +192,20 @@ jobs:
192
192
strategy :
193
193
fail-fast : false # if one os is failing continue nonetheless
194
194
matrix : # used to generate installers for different OS and not for runs-on
195
- operating-system : [ubuntu-18.04, windows-2019, macos-10.15]
196
195
197
196
include :
198
197
- operating-system : ubuntu-18.04
199
198
install-builder-name : linux-x64
200
199
executable-path : artifacts/linux-amd64/
201
200
- operating-system : windows-2019
201
+ arch : -386
202
+ browser : edge
203
+ install-builder-name : windows
204
+ executable-path : artifacts/windows/
205
+ extension : .exe
206
+ installer-extension : .exe
207
+ - operating-system : windows-2019
208
+ arch : -amd64
202
209
browser : edge
203
210
install-builder-name : windows
204
211
executable-path : artifacts/windows/
@@ -234,7 +241,7 @@ jobs:
234
241
- name : Download artifact
235
242
uses : actions/download-artifact@v2
236
243
with :
237
- name : arduino-create-agent-${{ matrix.operating-system }}
244
+ name : arduino-create-agent-${{ matrix.operating-system }}${{ matrix.arch }}
238
245
path : ${{ matrix.executable-path }} # path expected by installbuilder
239
246
240
247
# zip artifacts do not mantain executable permission
@@ -265,10 +272,10 @@ jobs:
265
272
- name : Launch Bitrock installbuilder-20 with CERT_INSTALL && CHOICE_CERT_INSTALL
266
273
run : |
267
274
${{ env.INSTALLBUILDER_PATH }} build installer.xml ${{ matrix.install-builder-name }} --verbose --license /tmp/license.xml --setvars ${INSTALLER_VARS} ${{ env.CERT_INSTALL }}
268
- mv -v ArduinoCreateAgent-${VERSION%.*}-${{ matrix.install-builder-name }}-installer-CI${{matrix.installer-extension}} ArduinoCreateAgent-${VERSION%.*}-${{ matrix.install-builder-name }}-installer-${{matrix.browser}}${{matrix.installer-extension}}
275
+ mv -v ArduinoCreateAgent-${VERSION%.*}-${{ matrix.install-builder-name }}-installer-CI${{matrix.installer-extension}} ArduinoCreateAgent-${VERSION%.*}-${{ matrix.install-builder-name }}${{ matrix.arch }} -installer-${{matrix.browser}}${{matrix.installer-extension}}
269
276
${{ env.INSTALLBUILDER_PATH }} build installer.xml ${{ matrix.install-builder-name }} --verbose --license /tmp/license.xml --setvars ${INSTALLER_VARS} ${{ env.CHOICE_CERT_INSTALL }}
270
- cp -vr ArduinoCreateAgent-${VERSION%.*}-${{ matrix.install-builder-name }}-installer-CC${{matrix.installer-extension}} ArduinoCreateAgent-${VERSION%.*}-${{ matrix.install-builder-name }}-installer-chrome${{matrix.installer-extension}}
271
- mv -v ArduinoCreateAgent-${VERSION%.*}-${{ matrix.install-builder-name }}-installer-CC${{matrix.installer-extension}} ArduinoCreateAgent-${VERSION%.*}-${{ matrix.install-builder-name }}-installer-firefox${{matrix.installer-extension}}
277
+ cp -vr ArduinoCreateAgent-${VERSION%.*}-${{ matrix.install-builder-name }}-installer-CC${{matrix.installer-extension}} ArduinoCreateAgent-${VERSION%.*}-${{ matrix.install-builder-name }}${{ matrix.arch }} -installer-chrome${{matrix.installer-extension}}
278
+ mv -v ArduinoCreateAgent-${VERSION%.*}-${{ matrix.install-builder-name }}-installer-CC${{matrix.installer-extension}} ArduinoCreateAgent-${VERSION%.*}-${{ matrix.install-builder-name }}${{ matrix.arch }} -installer-firefox${{matrix.installer-extension}}
272
279
rm -r ArduinoCreateAgent-${VERSION%.*}-${{ matrix.install-builder-name }}-installer-C*
273
280
if : matrix.operating-system == 'windows-2019' || matrix.operating-system == 'macos-10.15'
274
281
@@ -285,7 +292,7 @@ jobs:
285
292
- name : Upload artifacts
286
293
uses : actions/upload-artifact@v2
287
294
with :
288
- name : ArduinoCreateAgent-${{ matrix.install-builder-name }}
295
+ name : ArduinoCreateAgent-${{ matrix.install-builder-name }}${{ matrix.arch }}
289
296
path : ArduinoCreateAgent*
290
297
if-no-files-found : error
291
298
@@ -399,7 +406,7 @@ jobs:
399
406
mv -v ArduinoCreateAgent-linux-x64/* release/
400
407
cat ArduinoCreateAgent-osx/*.tar | tar -xvf - -i -C release/
401
408
rm -v release/._ArduinoCreateAgent*.dmg
402
- mv -v ArduinoCreateAgent-windows/* release/
409
+ mv -v ArduinoCreateAgent-windows* /* release/
403
410
404
411
- name : Create Github Release
405
412
uses : actions/create-release@v1
0 commit comments