From 3368b69c2de20de59a99448b49cc2065787bbf20 Mon Sep 17 00:00:00 2001 From: Maxime Pierront <46542631+MaximePIERRONT@users.noreply.github.com> Date: Sat, 19 Oct 2024 16:48:17 +0200 Subject: [PATCH] update README.md --- .github/workflows/maven.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 084fb40..8a80d6e 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -14,11 +14,22 @@ jobs: - uses: actions/checkout@v3 - name: Set up JDK 21 - uses: actions/setup-java@v3 + run: | + sudo apt-get update + sudo apt-get install -y openjdk-21-jdk + java -version + + - name: Set up Maven + run: | + sudo apt-get install -y maven + mvn -version + + - name: Cache Maven packages + uses: actions/cache@v3 with: - java-version: '21' - distribution: 'temurin' - cache: maven + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 - name: Build with Maven run: mvn -B compile