Skip to content

Fix version java

Fix version java #21

Workflow file for this run

name: Sculk Server
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up GraalVM with Java 21
uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
components: native-image # Installe également le composant Native Image de GraalVM
- name: Set up Maven
uses: actions/setup-java@v3
with:
java-version: '21' # See 'Options' section below for all supported versions
distribution: 'graalvm' # See 'Options' section below for all available distributions
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn clean package
# Optionnel : Générer une image native avec GraalVM
- name: Build Native Image
run: |
mvn package -Pnative
if: success() # N'exécute cette étape que si la construction précédente a réussi