forked from SpigotMC/BungeeCord
-
Notifications
You must be signed in to change notification settings - Fork 51
33 lines (28 loc) · 829 Bytes
/
maven.yml
File metadata and controls
33 lines (28 loc) · 829 Bytes
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
name: Maven Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
java: [8, 11, 17, 21, 25-ea]
name: Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- run: java -version && mvn --version
- run: mvn --activate-profiles dist --no-transfer-progress package
- uses: actions/upload-artifact@v4
with:
name: BungeeCord-Java-${{ matrix.java }}
path: bootstrap/target/BungeeCord.jar