Skip to content

Commit 71fa4a0

Browse files
committed
Add actions
1 parent 8119bc9 commit 71fa4a0

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Automatically build the project and run any configured tests for every push
2+
# and submitted pull request. This can help catch issues that only occur on
3+
# certain platforms or Java versions, and provides a first line of defence
4+
# against bad commits.
5+
6+
name: build
7+
on: [pull_request, push]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/cache@v4
14+
with:
15+
path: |
16+
~/.gradle/loom-cache
17+
~/.gradle/caches
18+
~/.gradle/wrapper
19+
key: gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
20+
restore-keys: |
21+
gradle-
22+
- name: checkout repository
23+
uses: actions/checkout@v4
24+
- name: validate gradle wrapper
25+
uses: gradle/actions/wrapper-validation@v3
26+
- name: setup jdk
27+
uses: actions/setup-java@v4
28+
with:
29+
java-version: 21
30+
distribution: 'microsoft'
31+
- name: make gradle wrapper executable
32+
run: chmod +x ./gradlew
33+
- name: build
34+
run: ./gradlew build
35+
- name: capture build artifacts
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: Artifacts
39+
path: build/libs/

0 commit comments

Comments
 (0)