Compare commits
No commits in common. "52802eedb8658fee0ff8ab462ee4bd0706c7e082" and "1aae1bd5c136e0ff0118fc606030e65a3a50e556" have entirely different histories.
52802eedb8
...
1aae1bd5c1
32
.gitea/workflows/ci.yaml
Normal file
32
.gitea/workflows/ci.yaml
Normal file
@ -0,0 +1,32 @@
|
||||
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
|
10
HelloWorld.java
Normal file
10
HelloWorld.java
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
public class HelloWorld {
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello World!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user