This commit is contained in:
parent
3a34ec488e
commit
a7e4f8013c
@ -11,19 +11,17 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: adoptopenjdk:17-jdk # 使用带有 JDK 17 的 Docker 镜像
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
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
|
||||
run: javac HelloWorld.java -d ./build/classes
|
||||
run: |
|
||||
mkdir -p ./build/classes
|
||||
javac HelloWorld.java -d ./build/classes
|
||||
|
||||
- name: List compiled files
|
||||
run: ls -la ./build/classes
|
||||
|
Loading…
Reference in New Issue
Block a user