Skip to content

Commit d003439

Browse files
committed
Add GitHub actions CI
1 parent 3345301 commit d003439

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Java CI
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
pull_request:
7+
8+
permissions:
9+
actions: write
10+
contents: write
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Java
21+
uses: actions/setup-java@v4
22+
with:
23+
distribution: temurin
24+
java-version: 21
25+
26+
- name: Grant execute permissions
27+
run: chmod +x compile
28+
29+
- name: Build
30+
run: ./compile
31+
32+
- name: Upload build jar
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: Build Artifacts
36+
path: build/libs/*.jar

0 commit comments

Comments
 (0)