mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-12-01 08:54:50 -05:00
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:
parent
4aab94ac26
commit
cd3fb8f6fc
4 changed files with 11 additions and 6 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
.github/workflows/codacy-code-reporter.yml
vendored
2
.github/workflows/codacy-code-reporter.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
2
.github/workflows/codeql-analysis.yml
vendored
2
.github/workflows/codeql-analysis.yml
vendored
|
|
@ -18,7 +18,7 @@ on:
|
|||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-24.04
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
|
|
|
|||
2
.github/workflows/label.yml
vendored
2
.github/workflows/label.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue