Skip to content

Commit 52449f1

Browse files
Create java-build.yml
1 parent e03a6bd commit 52449f1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/java-build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Java Build Check
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Setup Java
17+
uses: actions/setup-java@v3
18+
with:
19+
java-version: "17"
20+
distribution: "temurin"
21+
22+
- name: Compile Java files
23+
run: |
24+
find . -name "*.java" > sources.txt
25+
javac @sources.txt

0 commit comments

Comments
 (0)