change jdk version and add maven in action
Some checks failed
Gitea Actions Maven Build / build (push) Failing after 10m47s
Some checks failed
Gitea Actions Maven Build / build (push) Failing after 10m47s
This commit is contained in:
parent
249d890a92
commit
9ebbebda90
@ -1,20 +1,24 @@
|
|||||||
name: Gitea Actions Maven Build
|
name: Gitea Actions Maven Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ['master']
|
branches: ['master']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repo
|
- name: Checkout the repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup JDK 21
|
- name: Set up Maven
|
||||||
uses: actions/setup-java@v4
|
uses: stCarolas/setup-maven@v5
|
||||||
with:
|
with:
|
||||||
java-version: 21
|
maven-version: '3.8.2'
|
||||||
distribution: 'temurin'
|
- name: Set up JDK 23
|
||||||
cache: maven
|
uses: actions/setup-java@v4
|
||||||
- name: Build with Maven
|
with:
|
||||||
run: mvn -B package --file pom.xml
|
java-version: 23
|
||||||
|
distribution: 'temurin'
|
||||||
|
cache: maven
|
||||||
|
- name: Build with Maven
|
||||||
|
run: mvn -B package --file pom.xml
|
Loading…
x
Reference in New Issue
Block a user