change to origin but use setup-java mirror
Some checks failed
Java CI / build (push) Has been cancelled
Some checks failed
Java CI / build (push) Has been cancelled
This commit is contained in:
parent
2f55eb10ad
commit
78263e543a
@ -12,12 +12,16 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
container:
|
|
||||||
image: dockerp.com/openjdk:17
|
|
||||||
|
|
||||||
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'
|
||||||
|
server-url: 'https://mirrors.tuna.tsinghua.edu.cn/AdoptOpenJDK/'
|
||||||
|
|
||||||
- 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