@@ -33,11 +33,11 @@ jobs:
33
33
os : [ubuntu-20.04, windows-2019, macos-12]
34
34
arch : [amd64]
35
35
include :
36
- - os : windows-2019
37
- arch : 386
38
- ext : " .exe"
39
- - os : windows-2019
40
- ext : " .exe"
36
+ - os : windows-2019
37
+ arch : 386
38
+ ext : " .exe"
39
+ - os : windows-2019
40
+ ext : " .exe"
41
41
42
42
defaults :
43
43
run :
@@ -55,15 +55,15 @@ jobs:
55
55
# This is a workaround while waiting for create-release action to implement auto pre-release based on tag
56
56
id : prerelease
57
57
run : |
58
- curl -L -s https://github.com/fsaintjacques/semver-tool/archive/3.1.0.zip -o /tmp/3.1.0.zip
58
+ curl -L -s https://github.com/fsaintjacques/semver-tool/archive/3.1.0.zip -o /tmp/3.1.0.zip
59
59
unzip -p /tmp/3.1.0.zip semver-tool-3.1.0/src/semver >/tmp/semver && chmod +x /tmp/semver
60
60
if [[ $(/tmp/semver get prerel ${GITHUB_REF/refs\/tags\//}) ]]; then echo "IS_PRE=true" >> $GITHUB_OUTPUT; fi
61
61
62
62
- name : Disable EOL conversions
63
63
run : git config --global core.autocrlf false
64
64
65
65
- name : Checkout
66
- uses : actions/checkout@v3
66
+ uses : actions/checkout@v4
67
67
68
68
- name : Install Go
69
69
uses : actions/setup-go@v4
81
81
- name : Install Taskfile
82
82
uses : arduino/setup-task@v1
83
83
with :
84
- version : ' 3.x'
84
+ version : " 3.x"
85
85
repo-token : ${{ secrets.GITHUB_TOKEN }}
86
86
87
87
- name : Build the Agent for linux
@@ -102,7 +102,7 @@ jobs:
102
102
# building the agent for win requires a different task because of an extra flag
103
103
- name : Build the Agent for win32
104
104
env :
105
- GOARCH : 386 # 32bit architecture (for support)
105
+ GOARCH : 386 # 32bit architecture (for support)
106
106
run : task go:build-win
107
107
if : matrix.os == 'windows-2019' && matrix.arch == '386'
108
108
@@ -138,7 +138,7 @@ jobs:
138
138
- name : Upload autoupdate files to Arduino downloads servers
139
139
run : |
140
140
aws s3 sync public/ s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.TARGET }}
141
- aws s3 sync public/ s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.OLD_TARGET }}
141
+ aws s3 sync public/ s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.OLD_TARGET }}
142
142
if : steps.prerelease.outputs.IS_PRE != 'true'
143
143
144
144
- name : Upload artifacts
@@ -163,9 +163,9 @@ jobs:
163
163
164
164
steps :
165
165
- name : Checkout
166
- uses : actions/checkout@v3
166
+ uses : actions/checkout@v4
167
167
with :
168
- repository : ' bcmi-labs/arduino-create-agent-installer' # the repo which contains the bundle structure and icons
168
+ repository : " bcmi-labs/arduino-create-agent-installer" # the repo which contains the bundle structure and icons
169
169
token : ${{ secrets.ARDUINO_CREATE_AGENT_CI_PAT }}
170
170
171
171
- name : Download artifact
@@ -218,7 +218,7 @@ jobs:
218
218
if-no-files-found : error
219
219
name : ArduinoCreateAgent.app_${{ matrix.arch }}
220
220
path : ArduinoCreateAgent.app_${{ matrix.arch }}.tar
221
-
221
+
222
222
# The notarize-macos job will download the macos bundle from the previous job, sign, notarize and re-upload it, uploading it also on s3 download servers for the autoupdate.
223
223
notarize-macos :
224
224
name : Notarize bundle
@@ -262,7 +262,7 @@ jobs:
262
262
"${{ env.KEYCHAIN }}"
263
263
264
264
- name : Install gon for code signing and app notarization
265
- uses : actions/checkout@v3
265
+ uses : actions/checkout@v4
266
266
with :
267
267
repository : darkvertex/gon # this fork has support for --deep notarization
268
268
path : ${{ env.GON_PATH }}
@@ -297,7 +297,7 @@ jobs:
297
297
298
298
- name : Sign and notarize binary
299
299
run : gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"
300
-
300
+
301
301
- name : Upload autoupdate bundle to Arduino downloads servers
302
302
run : aws s3 cp ArduinoCreateAgent.app_${{ matrix.arch }}_notarized.zip s3://${{ secrets.DOWNLOADS_BUCKET }}${{ env.TARGET }}${GITHUB_REF/refs\/tags\//}/ # the version should be created in th the build job
303
303
if : ${{ needs.build.outputs.prerelease != 'true' }}
@@ -338,8 +338,8 @@ jobs:
338
338
INSTALLER_CERT_WINDOWS_PFX : " /tmp/ArduinoCerts2020.pfx"
339
339
340
340
strategy :
341
- fail-fast : false # if one os is failing continue nonetheless
342
- matrix : # used to generate installers for different OS and not for runs-on
341
+ fail-fast : false # if one os is failing continue nonetheless
342
+ matrix : # used to generate installers for different OS and not for runs-on
343
343
os : [ubuntu-20.04, windows-2019]
344
344
arch : [amd64]
345
345
include :
@@ -361,16 +361,16 @@ jobs:
361
361
362
362
steps :
363
363
- name : Checkout
364
- uses : actions/checkout@v3
364
+ uses : actions/checkout@v4
365
365
with :
366
- repository : ' bcmi-labs/arduino-create-agent-installer' # the repo which contains install.xml
366
+ repository : " bcmi-labs/arduino-create-agent-installer" # the repo which contains install.xml
367
367
token : ${{ secrets.ARDUINO_CREATE_AGENT_CI_PAT }}
368
368
369
369
- name : Download artifact
370
370
uses : actions/download-artifact@v3
371
371
with :
372
372
name : ${{ env.PROJECT_NAME }}-${{ matrix.os }}-${{ matrix.arch }}
373
- path : artifacts/${{ matrix.platform-name }}/ # path expected by installbuilder
373
+ path : artifacts/${{ matrix.platform-name }}/ # path expected by installbuilder
374
374
375
375
# zip artifacts do not mantain executable permission
376
376
- name : Make executable
@@ -417,9 +417,9 @@ jobs:
417
417
runs-on : macos-12
418
418
steps :
419
419
- name : Checkout repo with icons/background
420
- uses : actions/checkout@v3
420
+ uses : actions/checkout@v4
421
421
with :
422
- repository : ' bcmi-labs/arduino-create-agent-installer' # the repo which contains the icons/background
422
+ repository : " bcmi-labs/arduino-create-agent-installer" # the repo which contains the icons/background
423
423
token : ${{ secrets.ARDUINO_CREATE_AGENT_CI_PAT }}
424
424
425
425
- name : Download artifact
@@ -515,7 +515,7 @@ jobs:
515
515
516
516
steps :
517
517
- name : Checkout
518
- uses : actions/checkout@v3
518
+ uses : actions/checkout@v4
519
519
with :
520
520
fetch-depth : 0 # fetch all history for the create changelog step to work properly
521
521
@@ -579,7 +579,7 @@ jobs:
579
579
with :
580
580
repo_token : ${{ secrets.GITHUB_TOKEN }}
581
581
tag : ${{ github.ref }}
582
- file_glob : true # If set to true, the file argument can be a glob pattern
582
+ file_glob : true # If set to true, the file argument can be a glob pattern
583
583
file : release/*
584
584
585
585
- name : Upload release files on Arduino downloads servers
0 commit comments