Skip to content

Commit 34450af

Browse files
authored
Create build.yml
1 parent f255339 commit 34450af

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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: [push, workflow_dispatch]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
java: [21]
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: checkout repository
17+
uses: actions/checkout@v4
18+
- name: validate gradle wrapper
19+
uses: gradle/actions/wrapper-validation@v4
20+
- name: setup jdk ${{ matrix.java }}
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: ${{ matrix.java }}
24+
distribution: 'microsoft'
25+
- name: make gradle wrapper executable
26+
run: chmod +x ./gradlew
27+
- name: build
28+
run: ./gradlew clean chiseledBuild
29+
- name: capture build artifacts
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: Artifacts
33+
path: versions/**/build/libs/*.jar

0 commit comments

Comments
 (0)