Skip to content

Update dependency ubuntu to v24 #4327

Update dependency ubuntu to v24

Update dependency ubuntu to v24 #4327

Workflow file for this run

name: Java CI with Gradle
on: [ push, pull_request ]
jobs:
build:
# Only run on PRs if the source branch is on someone else's repo
if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}"
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
check-latest: true
- name: Execute Gradle Build
run: ./gradlew build test --stacktrace
- name: Prepare Upload
run: |
projectVersion=$(grep '^maven_version=' gradle.properties | cut -d'=' -f2)
mkdir client/build/upload
cp client/build/libs/SoulFireCLI-$projectVersion.jar client/build/upload
mkdir dedicated/build/upload
cp dedicated/build/libs/SoulFireDedicated-$projectVersion.jar dedicated/build/upload
- name: Upload Client Build Artifacts
uses: actions/upload-artifact@v4
with:
name: SoulFireCLI
if-no-files-found: error
path: |
client/build/upload/*.jar
- name: Upload Dedicated Build Artifacts
uses: actions/upload-artifact@v4
with:
name: SoulFireDedicated
if-no-files-found: error
path: |
dedicated/build/upload/*.jar