Skip to content

Commit 7bc0e91

Browse files
authored
Merge pull request #3 from 4drian3d/actions
Added Actions to compile in JDK 16
2 parents f1a2be1 + 7eb5311 commit 7bc0e91

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/maven.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Maven Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
# ViaPotions requires Java 16 to compile.
11+
# However, it works in Java 8 up to Java 16.
12+
strategy:
13+
matrix:
14+
java: [16]
15+
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@v2
19+
20+
- name: Set up JDK ${{ matrix.java }}
21+
uses: actions/setup-java@v2
22+
with:
23+
java-version: ${{ matrix.java }}
24+
distribution: 'adopt'
25+
26+
- name: Build with Maven
27+
run: mvn -B package --file pom.xml
28+
29+
- name: Upload artifact
30+
uses: actions/[email protected]
31+
with:
32+
name: ViaPotions
33+
path: target/ViaPotions.jar

0 commit comments

Comments
 (0)