Skip to content

Commit fc94e5e

Browse files
Create java-build.yml
1 parent eb31215 commit fc94e5e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/java-build.yml

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

0 commit comments

Comments
 (0)