Skip to content

Commit 512c48c

Browse files
committed
fix: update workflow to use ubuntu-22.04 instead of ubuntu-20.04
1 parent 87f097b commit 512c48c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/publish-go-tester-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
#use the strategy instead because we still use the native build
6666
strategy:
6767
matrix:
68-
os: [ubuntu-20.04, windows-2019, macos-13]
68+
os: [ubuntu-22.04, windows-2019, macos-13]
6969
arch: [-amd64]
7070
include:
7171
- os: windows-2019

.github/workflows/release.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
prerelease: ${{ steps.prerelease.outputs.IS_PRE }}
3333
strategy:
3434
matrix:
35-
os: [ubuntu-20.04, windows-2019, macos-13]
35+
os: [ubuntu-22.04, windows-2019, macos-13]
3636
arch: [amd64]
3737
include:
3838
- os: windows-2019
@@ -88,7 +88,7 @@ jobs:
8888

8989
- name: Build the Agent for linux
9090
run: task go:build
91-
if: matrix.os == 'ubuntu-20.04'
91+
if: matrix.os == 'ubuntu-22.04'
9292

9393
# the manifest is required by windows GUI apps, otherwise the binary will crash with: "Unable to create main window: TTM_ADDTOOL failed" (for reference https://github.com/lxn/walk/issues/28)
9494
# rsrc will produce a *.syso file that should get automatically recognized by go build command and linked into an executable.
@@ -390,7 +390,7 @@ jobs:
390390
# This job is responsible for generating the installers (using installbuilder)
391391
package:
392392
needs: build
393-
runs-on: ubuntu-20.04
393+
runs-on: ubuntu-22.04
394394

395395
env:
396396
# vars used by installbuilder
@@ -400,10 +400,10 @@ jobs:
400400
strategy:
401401
fail-fast: false # if one os is failing continue nonetheless
402402
matrix: # used to generate installers for different OS and not for runs-on
403-
os: [ubuntu-20.04, windows-2019]
403+
os: [ubuntu-22.04, windows-2019]
404404
arch: [amd64]
405405
include:
406-
- os: ubuntu-20.04
406+
- os: ubuntu-22.04
407407
platform-name: linux
408408
installbuilder-name: linux-x64
409409
installer-extension: .run
@@ -438,7 +438,7 @@ jobs:
438438
# zip artifacts do not mantain executable permission
439439
- name: Make executable
440440
run: chmod -v +x artifacts/${{ matrix.platform-name }}/${{ env.PROJECT_NAME }}*
441-
if: matrix.os == 'ubuntu-20.04'
441+
if: matrix.os == 'ubuntu-22.04'
442442

443443
- name: Rename executable to Arduino_Cloud_Agent
444444
run: mv -v artifacts/${{ matrix.platform-name }}/${{ env.PROJECT_NAME }}${{ matrix.extension }} artifacts/${{ matrix.platform-name }}/Arduino_Cloud_Agent${{ matrix.extension }}
@@ -451,7 +451,7 @@ jobs:
451451

452452
- name: Generate archive
453453
run: tar -czvf ArduinoCloudAgent-${GITHUB_REF##*/}-${{ matrix.platform-name }}-${{ matrix.arch }}-installer.tar.gz ArduinoCloudAgent-${GITHUB_REF##*/}-${{ matrix.platform-name }}-${{ matrix.arch }}-installer${{matrix.installer-extension}}
454-
if: matrix.os == 'ubuntu-20.04'
454+
if: matrix.os == 'ubuntu-22.04'
455455

456456
- name: Upload artifacts
457457
uses: actions/upload-artifact@v4
@@ -606,7 +606,7 @@ jobs:
606606
if-no-files-found: error
607607

608608
create-release:
609-
runs-on: ubuntu-20.04
609+
runs-on: ubuntu-22.04
610610
environment: production
611611
needs: [build, generate-sign-dmg, sign-windows]
612612

0 commit comments

Comments
 (0)