Skip to content

Convert to multiplatform plugin #13

Convert to multiplatform plugin

Convert to multiplatform plugin #13

Workflow file for this run

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