Skip to content

chore(.github): update workflow to use ubuntu-22.04 instead of ubuntu-20.04 #1028

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish-go-tester-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
#use the strategy instead because we still use the native build
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-13]
os: [ubuntu-22.04, windows-2019, macos-13]
arch: [-amd64]
include:
- os: windows-2019
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
prerelease: ${{ steps.prerelease.outputs.IS_PRE }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-13]
os: [ubuntu-22.04, windows-2019, macos-13]
arch: [amd64]
include:
- os: windows-2019
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:

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

# 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)
# rsrc will produce a *.syso file that should get automatically recognized by go build command and linked into an executable.
Expand Down Expand Up @@ -390,7 +390,7 @@ jobs:
# This job is responsible for generating the installers (using installbuilder)
package:
needs: build
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

env:
# vars used by installbuilder
Expand All @@ -400,10 +400,10 @@ jobs:
strategy:
fail-fast: false # if one os is failing continue nonetheless
matrix: # used to generate installers for different OS and not for runs-on
os: [ubuntu-20.04, windows-2019]
os: [ubuntu-22.04, windows-2019]
arch: [amd64]
include:
- os: ubuntu-20.04
- os: ubuntu-22.04
platform-name: linux
installbuilder-name: linux-x64
installer-extension: .run
Expand Down Expand Up @@ -438,7 +438,7 @@ jobs:
# zip artifacts do not mantain executable permission
- name: Make executable
run: chmod -v +x artifacts/${{ matrix.platform-name }}/${{ env.PROJECT_NAME }}*
if: matrix.os == 'ubuntu-20.04'
if: matrix.os == 'ubuntu-22.04'

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

- name: Generate archive
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}}
if: matrix.os == 'ubuntu-20.04'
if: matrix.os == 'ubuntu-22.04'

- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -606,7 +606,7 @@ jobs:
if-no-files-found: error

create-release:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
environment: production
needs: [build, generate-sign-dmg, sign-windows]

Expand Down
Loading