-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (37 loc) · 1.04 KB
/
build.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
40
41
42
43
44
name: "Build"
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
fail-fast: false
matrix:
target: [ bukkit, fabric, forge ]
name: Build ${{ matrix.target }}
runs-on: ubuntu-latest
if: "!startsWith(github.event.commits[0].message, '[ci-skip]')"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: gradle
cache-dependency-path: |
**/*.gradle*
**/gradle-wrapper.properties
- name: Build with Gradle
run: "./gradlew :${{matrix.target}}:build"
- name: Upload builds
uses: actions/upload-artifact@v4
with:
name: "cssminecraft-${{matrix.target}}.jar"
path: |
${{matrix.target}}/build/libs/cssminecraft-${{matrix.target}}-*.jar
!**/*-no-map.jar
if-no-files-found: error