renew ci.yaml to use pre-installed jdk container
Some checks failed
Java CI / build (push) Failing after 1m30s
Some checks failed
Java CI / build (push) Failing after 1m30s
This commit is contained in:
parent
4a8c01088a
commit
0d351ea42c
@ -12,15 +12,12 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
container:
|
||||||
|
image: openjdk:17-jdk-slim
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v2
|
uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v2
|
||||||
|
|
||||||
- name: Set up JDK 17
|
|
||||||
uses: http://fly6516.synology.me:4000/Gitea_Action/setup-java@v2
|
|
||||||
with:
|
|
||||||
java-version: '17'
|
|
||||||
distribution: 'temurin'
|
|
||||||
|
|
||||||
- name: Compile Java program
|
- name: Compile Java program
|
||||||
run: javac HelloWorld.java -d ./build/classes
|
run: javac HelloWorld.java -d ./build/classes
|
||||||
|
Loading…
Reference in New Issue
Block a user