forked from CloudburstMC/Nukkit
-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (37 loc) · 976 Bytes
/
maven.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Java CI
on: [push, workflow_dispatch]
jobs:
build:
name: Java ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java:
[
17,
21,
]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: oracle
cache: maven
- name: Install dependencies
run: |
git clone --no-tags --depth 1 https://github.com/EaseCation/Network.git target/Network
cd target/Network
mvn -B clean install
- name: Build with Maven
run: mvn -B clean package
- name: Archive artifacts
uses: actions/upload-artifact@v4
if: success()
with:
name: Nukkit-${{ matrix.java }}
path: target/nukkit.jar