@@ -31,10 +31,10 @@ jobs:
31
31
strategy :
32
32
matrix :
33
33
os : [ubuntu-20.04, windows-2019, macos-12]
34
- arch : [- amd64]
34
+ arch : [amd64]
35
35
include :
36
36
- os : windows-2019
37
- arch : - 386
37
+ arch : 386
38
38
ext : " .exe"
39
39
- os : windows-2019
40
40
ext : " .exe"
@@ -104,11 +104,11 @@ jobs:
104
104
env :
105
105
GOARCH : 386 # 32bit architecture (for support)
106
106
run : task go:build-win
107
- if : matrix.os == 'windows-2019' && matrix.arch == '- 386'
107
+ if : matrix.os == 'windows-2019' && matrix.arch == '386'
108
108
109
109
- name : Build the Agent for win64
110
110
run : task go:build-win # GOARCH=amd64 by default on the runners
111
- if : matrix.os == 'windows-2019' && matrix.arch == '- amd64'
111
+ if : matrix.os == 'windows-2019' && matrix.arch == 'amd64'
112
112
113
113
- name : Build the Agent for macos
114
114
env :
@@ -121,7 +121,7 @@ jobs:
121
121
# this will create `public/` dir with compressed full bin (<version>/<os>-<arch>.gz) and a json file
122
122
- name : Create autoupdate files
123
123
run : go-selfupdate ${{ env.PROJECT_NAME }}${{ matrix.ext }} ${TAG_VERSION}
124
- if : matrix.arch != '- 386' && steps.prerelease.outputs.IS_PRE != 'true'
124
+ if : matrix.arch != '386' && steps.prerelease.outputs.IS_PRE != 'true'
125
125
126
126
# for now we do not distribute m1 build, this is a workaround for now
127
127
- name : Copy autoupdate file for darwin-arm64 (m1 arch)
@@ -132,8 +132,8 @@ jobs:
132
132
if : matrix.os == 'macos-12' && steps.prerelease.outputs.IS_PRE != 'true'
133
133
134
134
- name : Create autoupdate files for win32
135
- run : go-selfupdate -platform windows${{ matrix.arch }} ${{ env.PROJECT_NAME }}${{ matrix.ext }} ${TAG_VERSION}
136
- if : matrix.arch == '- 386' && matrix.os == 'windows-2019' && steps.prerelease.outputs.IS_PRE != 'true'
135
+ run : go-selfupdate -platform windows- ${{ matrix.arch }} ${{ env.PROJECT_NAME }}${{ matrix.ext }} ${TAG_VERSION}
136
+ if : matrix.arch == '386' && matrix.os == 'windows-2019' && steps.prerelease.outputs.IS_PRE != 'true'
137
137
138
138
- name : Upload autoupdate files to Arduino downloads servers
139
139
run : |
@@ -144,7 +144,7 @@ jobs:
144
144
- name : Upload artifacts
145
145
uses : actions/upload-artifact@v3
146
146
with :
147
- name : ${{ env.PROJECT_NAME }}-${{ matrix.os }}${{ matrix.arch }}
147
+ name : ${{ env.PROJECT_NAME }}-${{ matrix.os }}- ${{ matrix.arch }}
148
148
path : |
149
149
${{ env.PROJECT_NAME }}*
150
150
if-no-files-found : error
@@ -345,15 +345,15 @@ jobs:
345
345
fail-fast : false # if one os is failing continue nonetheless
346
346
matrix : # used to generate installers for different OS and not for runs-on
347
347
os : [ubuntu-20.04, windows-2019, macos-12]
348
- arch : [- amd64]
348
+ arch : [amd64]
349
349
include :
350
350
- os : ubuntu-20.04
351
351
install-builder-name : linux
352
352
executable-path : artifacts/linux-amd64/
353
353
installer-extension : .run
354
354
artifact-name : arduino-create-agent-ubuntu-20.04-amd64
355
355
- os : windows-2019
356
- arch : - 386
356
+ arch : 386
357
357
install-builder-name : windows
358
358
executable-path : artifacts/windows/
359
359
extension : .exe
@@ -424,16 +424,16 @@ jobs:
424
424
# installbuilder reads the env vars with certs paths and use it to sign the installer.
425
425
- name : Launch Bitrock installbuilder
426
426
run : |
427
- ${{ env.INSTALLBUILDER_PATH }} build installer.xml ${{ matrix.install-builder-name }} --verbose --license /tmp/license.xml --setvars " ${{ env.INSTALLER_VARS }} architecture=${{ matrix.arch }}"
427
+ ${{ env.INSTALLBUILDER_PATH }} build installer.xml ${{ matrix.install-builder-name }} --verbose --license /tmp/license.xml --setvars ${{ env.INSTALLER_VARS }} architecture=${{ matrix.arch }}
428
428
429
429
- name : Generate archive
430
- run : tar -czvf ArduinoCreateAgent-${GITHUB_REF##*/}-${{ matrix.install-builder-name }}${{ matrix.arch }}-installer.tar.gz ArduinoCreateAgent-${GITHUB_REF##*/}-${{ matrix.install-builder-name }}${{ matrix.arch }}-installer${{matrix.installer-extension}}
430
+ run : tar -czvf ArduinoCreateAgent-${GITHUB_REF##*/}-${{ matrix.install-builder-name }}- ${{ matrix.arch }}-installer.tar.gz ArduinoCreateAgent-${GITHUB_REF##*/}-${{ matrix.install-builder-name }}- ${{ matrix.arch }}-installer${{matrix.installer-extension}}
431
431
if : matrix.os == 'ubuntu-20.04'
432
432
433
433
- name : Upload artifacts
434
434
uses : actions/upload-artifact@v3
435
435
with :
436
- name : ArduinoCreateAgent-${{ matrix.install-builder-name }}${{ matrix.arch }}
436
+ name : ArduinoCreateAgent-${{ matrix.install-builder-name }}- ${{ matrix.arch }}
437
437
path : ArduinoCreateAgent*
438
438
if-no-files-found : error
439
439
@@ -442,19 +442,19 @@ jobs:
442
442
needs : package
443
443
strategy :
444
444
matrix :
445
- arch : [- amd64]
445
+ arch : [amd64]
446
446
447
447
runs-on : macos-12
448
448
steps :
449
449
- name : Download artifact
450
450
uses : actions/download-artifact@v3
451
451
with :
452
- name : ArduinoCreateAgent-osx${{ matrix.arch }}
452
+ name : ArduinoCreateAgent-osx$- {{ matrix.arch }}
453
453
path : ArduinoCreateAgent-osx
454
454
455
455
# zip artifacts do not mantain executable permission
456
456
- name : Make executable
457
- run : chmod -v +x ArduinoCreateAgent-osx/ArduinoCreateAgent-${GITHUB_REF##*/}-osx${{ matrix.arch }}-installer.app/Contents/MacOS/*
457
+ run : chmod -v +x ArduinoCreateAgent-osx/ArduinoCreateAgent-${GITHUB_REF##*/}-osx- ${{ matrix.arch }}-installer.app/Contents/MacOS/*
458
458
459
459
- name : Import Code-Signing Certificates
460
460
run : |
@@ -484,33 +484,33 @@ jobs:
484
484
# gon does not allow env variables in config file (https://github.com/mitchellh/gon/issues/20)
485
485
run : |
486
486
cat > gon.config_installer.hcl <<EOF
487
- source = ["ArduinoCreateAgent-osx/ArduinoCreateAgent-${GITHUB_REF##*/}-osx${{ matrix.arch }}-installer.app"]
487
+ source = ["ArduinoCreateAgent-osx/ArduinoCreateAgent-${GITHUB_REF##*/}-osx- ${{ matrix.arch }}-installer.app"]
488
488
bundle_id = "cc.arduino.${{ env.PROJECT_NAME }}-installer"
489
489
490
490
sign {
491
491
application_identity = "Developer ID Application: ARDUINO SA (7KT7ZWMCJT)"
492
492
}
493
493
494
494
dmg {
495
- output_path = "ArduinoCreateAgent-${GITHUB_REF##*/}-osx${{ matrix.arch }}-installer.dmg"
495
+ output_path = "ArduinoCreateAgent-${GITHUB_REF##*/}-osx- ${{ matrix.arch }}-installer.dmg"
496
496
volume_name = "ArduinoCreateAgent"
497
497
}
498
498
EOF
499
499
500
500
- name : Code sign and notarize app
501
501
run : |
502
- echo "gon will notarize executable in ArduinoCreateAgent-osx/ArduinoCreateAgent-${GITHUB_REF##*/}-osx${{ matrix.arch }}-installer.app"
502
+ echo "gon will notarize executable in ArduinoCreateAgent-osx/ArduinoCreateAgent-${GITHUB_REF##*/}-osx- ${{ matrix.arch }}-installer.app"
503
503
gon -log-level=debug -log-json gon.config_installer.hcl
504
504
timeout-minutes : 30
505
505
506
506
# tar dmg file to keep executable permission
507
507
- name : Tar files to keep permissions
508
- run : tar -cvf ArduinoCreateAgent-${GITHUB_REF##*/}-osx${{ matrix.arch }}-installer.tar ArduinoCreateAgent-${GITHUB_REF##*/}-osx${{ matrix.arch }}-installer.dmg
508
+ run : tar -cvf ArduinoCreateAgent-${GITHUB_REF##*/}-osx- ${{ matrix.arch }}-installer.tar ArduinoCreateAgent-${GITHUB_REF##*/}-osx- ${{ matrix.arch }}-installer.dmg
509
509
510
510
- name : Upload artifacts
511
511
uses : actions/upload-artifact@v3
512
512
with :
513
- name : ArduinoCreateAgent-osx${{ matrix.arch }}
513
+ name : ArduinoCreateAgent-osx- ${{ matrix.arch }}
514
514
path : ArduinoCreateAgent*.tar
515
515
if-no-files-found : error
516
516
0 commit comments