Upgrade Github Runners to Ubuntu 24.04

Fix `FileNotFoundException` errors when running tests on Ubuntu 24.04.
Tests were failing because the user data directory did not exist in the
new GitHub Ubuntu-24.04 runner environment.

The change:
- Updates all GitHub Actions workflows to use `ubuntu-24.04`
- Creates `~/.local/share` directory in CI pipeline to ensure the user
  data directory exists during tests

This resolves the blocking issue that prevented the Ubuntu upgrade by
ensuring the required directory structure exists in the CI environment.
This commit is contained in:
Robbie Blaine 2025-05-09 13:49:03 +02:00 committed by woodser
parent 4aab94ac26
commit cd3fb8f6fc
4 changed files with 11 additions and 6 deletions

View file

@ -14,11 +14,11 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-22.04-arm, macos-13, macos-15, windows-latest]
os: [ubuntu-24.04, ubuntu-24.04-arm, macos-13, macos-15, windows-latest]
include:
- os: ubuntu-22.04
- os: ubuntu-24.04
arch: x86_64
- os: ubuntu-22.04-arm
- os: ubuntu-24.04-arm
arch: aarch64
- os: macos-13
arch: x86_64
@ -38,6 +38,11 @@ jobs:
java-version: '21'
distribution: 'adopt'
cache: gradle
- name: Create local share directory
# ubuntu-24.04 Github runners do not have `~/.local/share` directory by default.
# This causes issues when testing `FileTransferSend`
if: runner.os == 'Linux'
run: mkdir -p ~/.local/share
- name: Build with Gradle with tests
if: ${{ !(runner.os == 'Linux' && matrix.arch == 'aarch64') }}
run: ./gradlew build --stacktrace --scan

View file

@ -9,7 +9,7 @@ jobs:
build:
if: github.repository == 'haveno-dex/haveno'
name: Publish coverage
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

View file

@ -18,7 +18,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read

View file

@ -7,7 +7,7 @@ on:
jobs:
issueLabeled:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Bounty explanation
uses: peter-evans/create-or-update-comment@v3