This commit is contained in:
parent
87b1b92512
commit
3368b69c2d
19
.github/workflows/maven.yml
vendored
19
.github/workflows/maven.yml
vendored
@ -14,11 +14,22 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up JDK 21
|
- 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:
|
with:
|
||||||
java-version: '21'
|
path: ~/.m2
|
||||||
distribution: 'temurin'
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||||
cache: maven
|
restore-keys: ${{ runner.os }}-m2
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B compile
|
run: mvn -B compile
|
||||||
|
Loading…
Reference in New Issue
Block a user