Skip to content

Commit 3e180bc

Browse files
Added a build github workflow that will automatically build the project when there is a commit or PR
1 parent 4f426d8 commit 3e180bc

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Java CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "**" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up JDK 26
18+
uses: actions/setup-java@v4
19+
with:
20+
java-version: '26'
21+
distribution: 'temurin'
22+
23+
- name: Create output directory
24+
run: mkdir -p out
25+
26+
- name: Compile Java sources
27+
run: javac -d out $(find src -name "*.java")

0 commit comments

Comments
 (0)