@@ -33,11 +33,11 @@ jobs:
3333 os : [ubuntu-20.04, windows-2019, macos-12]
3434 arch : [amd64]
3535 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"
4141
4242 defaults :
4343 run :
@@ -55,15 +55,15 @@ jobs:
5555 # This is a workaround while waiting for create-release action to implement auto pre-release based on tag
5656 id : prerelease
5757 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
5959 unzip -p /tmp/3.1.0.zip semver-tool-3.1.0/src/semver >/tmp/semver && chmod +x /tmp/semver
6060 if [[ $(/tmp/semver get prerel ${GITHUB_REF/refs\/tags\//}) ]]; then echo "IS_PRE=true" >> $GITHUB_OUTPUT; fi
6161
6262 - name : Disable EOL conversions
6363 run : git config --global core.autocrlf false
6464
6565 - name : Checkout
66- uses : actions/checkout@v3
66+ uses : actions/checkout@v4
6767
6868 - name : Install Go
6969 uses : actions/setup-go@v4
8181 - name : Install Taskfile
8282 uses : arduino/setup-task@v1
8383 with :
84- version : ' 3.x'
84+ version : " 3.x"
8585 repo-token : ${{ secrets.GITHUB_TOKEN }}
8686
8787 - name : Build the Agent for linux
@@ -102,7 +102,7 @@ jobs:
102102 # building the agent for win requires a different task because of an extra flag
103103 - name : Build the Agent for win32
104104 env :
105- GOARCH : 386 # 32bit architecture (for support)
105+ GOARCH : 386 # 32bit architecture (for support)
106106 run : task go:build-win
107107 if : matrix.os == 'windows-2019' && matrix.arch == '386'
108108
@@ -138,7 +138,7 @@ jobs:
138138 - name : Upload autoupdate files to Arduino downloads servers
139139 run : |
140140 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 }}
142142 if : steps.prerelease.outputs.IS_PRE != 'true'
143143
144144 - name : Upload artifacts
@@ -163,9 +163,9 @@ jobs:
163163
164164 steps :
165165 - name : Checkout
166- uses : actions/checkout@v3
166+ uses : actions/checkout@v4
167167 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
169169 token : ${{ secrets.ARDUINO_CREATE_AGENT_CI_PAT }}
170170
171171 - name : Download artifact
@@ -218,7 +218,7 @@ jobs:
218218 if-no-files-found : error
219219 name : ArduinoCreateAgent.app_${{ matrix.arch }}
220220 path : ArduinoCreateAgent.app_${{ matrix.arch }}.tar
221-
221+
222222 # 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.
223223 notarize-macos :
224224 name : Notarize bundle
@@ -262,7 +262,7 @@ jobs:
262262 "${{ env.KEYCHAIN }}"
263263
264264 - name : Install gon for code signing and app notarization
265- uses : actions/checkout@v3
265+ uses : actions/checkout@v4
266266 with :
267267 repository : darkvertex/gon # this fork has support for --deep notarization
268268 path : ${{ env.GON_PATH }}
@@ -297,7 +297,7 @@ jobs:
297297
298298 - name : Sign and notarize binary
299299 run : gon -log-level=debug -log-json "${{ env.GON_CONFIG_PATH }}"
300-
300+
301301 - name : Upload autoupdate bundle to Arduino downloads servers
302302 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
303303 if : ${{ needs.build.outputs.prerelease != 'true' }}
@@ -338,8 +338,8 @@ jobs:
338338 INSTALLER_CERT_WINDOWS_PFX : " /tmp/ArduinoCerts2020.pfx"
339339
340340 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
343343 os : [ubuntu-20.04, windows-2019]
344344 arch : [amd64]
345345 include :
@@ -361,16 +361,16 @@ jobs:
361361
362362 steps :
363363 - name : Checkout
364- uses : actions/checkout@v3
364+ uses : actions/checkout@v4
365365 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
367367 token : ${{ secrets.ARDUINO_CREATE_AGENT_CI_PAT }}
368368
369369 - name : Download artifact
370370 uses : actions/download-artifact@v3
371371 with :
372372 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
374374
375375 # zip artifacts do not mantain executable permission
376376 - name : Make executable
@@ -417,9 +417,9 @@ jobs:
417417 runs-on : macos-12
418418 steps :
419419 - name : Checkout repo with icons/background
420- uses : actions/checkout@v3
420+ uses : actions/checkout@v4
421421 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
423423 token : ${{ secrets.ARDUINO_CREATE_AGENT_CI_PAT }}
424424
425425 - name : Download artifact
@@ -515,7 +515,7 @@ jobs:
515515
516516 steps :
517517 - name : Checkout
518- uses : actions/checkout@v3
518+ uses : actions/checkout@v4
519519 with :
520520 fetch-depth : 0 # fetch all history for the create changelog step to work properly
521521
@@ -579,7 +579,7 @@ jobs:
579579 with :
580580 repo_token : ${{ secrets.GITHUB_TOKEN }}
581581 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
583583 file : release/*
584584
585585 - name : Upload release files on Arduino downloads servers
0 commit comments