Java_compiler_test/.gitea/workflows/ci.yaml
fly6516 1aae1bd5c1
Some checks failed
Java CI / build (push) Failing after 5s
readded node support
2024-12-16 11:03:14 +08:00

33 lines
649 B
YAML

name: Java CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container:
image: dockerp.com/node:14-jdk
steps:
- name: Checkout code
uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v2
- name: Compile Java program
run: javac HelloWorld.java -d ./build/classes
- name: List compiled files
run: ls -la ./build/classes
- name: Upload artifact
uses: http://fly6516.synology.me:4000/Gitea_Action/upload-artifact@v2
with:
name: java-classes
path: ./build/classes