2020-11-01 02:24:55 +00:00
< p align = "center" >
< a href = "https://sprax.me/discord" >
< img alt = "Get Support on Discord" src = "https://img.shields.io/discord/344982818863972352.svg?label=Get%20Support&logo=Discord&color=blue" >
< / a >
< a href = "https://www.patreon.com/sprax" >
< img alt = "Support me on Patreon"
src="https://img.shields.io/badge/-Support%20me%20on%20Patreon-%23FF424D?logo=patreon& logoColor=white">
< / a >
< / p >
< p align = "center" >
< a href = "https://github.com/SpraxDev/Action-SpigotMC/actions?query=workflow%3A%22Build+%26+Run%22" >
< img alt = "Build & Run" src = "https://github.com/SpraxDev/Action-SpigotMC/workflows/Build%20&%20Run/badge.svg" >
< / a >
< a href = "https://sonarcloud.io/dashboard?id=SpraxDev_Action-SpigotMC" >
< img alt = "Quality Gate Status"
src="https://sonarcloud.io/api/project_badges/measure?project=SpraxDev_Action-SpigotMC& metric=alert_status">
< / a >
< / p >
2020-11-24 15:50:04 +00:00
# Action-SpigotMC
2020-11-24 17:24:19 +00:00
This Action allows you to easily compile Minecraft Spigot or Paper
2020-11-01 02:24:55 +00:00
and install it in your runners local maven repository.
2020-11-24 15:50:04 +00:00
Supported:
* SpigotMC (using official BuildTools or my modified one)
* ~~PaperMC~~ (coming soon #26 )
2020-11-01 02:24:55 +00:00
You configure all the versions you want, and it'll compile all the missing versions automatically.
By checking for a file in the local maven repository beforehand, build times can be reduces drastically.
By default, this Action uses [a fork ](https://github.com/SpraxDev/Spigot-BuildTools#readme ) of the
[original BuildTools ](https://hub.spigotmc.org/stash/projects/SPIGOT/repos/buildtools/browse )
to introduce some improvements in *system compatibility* and *speed* .
## Usage
2020-11-29 21:37:08 +00:00
**Note:** Use `actions/cache` as described [here ](https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-java-with-maven#caching-dependencies ) to save some additional time by caching between runs!
2020-11-01 02:24:55 +00:00
All the values already provided below are their default values.
If you don't change them, you can remove them from your workflow,
as they are set automatically.
```YAML
2020-11-24 15:50:04 +00:00
- uses: SpraxDev/Action-SpigotMC@v1
2020-11-01 02:24:55 +00:00
with:
# A comma-separated list of Spigot version that should be compiled
# These values are later given to the BuildTools.jar as '--rev' argument
#
# Example: latest, 1.14.4, 1.8.8
2020-11-24 18:43:40 +00:00
versions: latest # Optional
2020-11-01 02:24:55 +00:00
# Should sources be generated?
# If enabled, BuildTools is provided the '--generate-source' argument
2020-11-24 18:43:40 +00:00
generateSrc: false # Optional
2020-11-01 02:24:55 +00:00
# Should the documentation be generated?
# If enabled, BuildTools is provided the '--generate-docs' argument
2020-11-24 18:43:40 +00:00
generateDoc: false # Optional
2020-11-01 02:24:55 +00:00
# Should we disable the BuildTools's Java-Version-Check?
# If enabled, BuildTools is provided the '--disable-java-check' argument
2020-11-24 18:43:40 +00:00
disableJavaCheck: false # Optional
2020-11-01 02:24:55 +00:00
# Disables the check for existing files in the local maven repository
# Normally, a version is skipped if it is already installed
# in the local maven repository to speed up build time
2020-11-24 18:43:40 +00:00
forceRun: false # Optional
2020-11-01 02:24:55 +00:00
# The amount of builds allowed to run at the same time
# Set to '-1' to use system's cpu core count
2020-11-24 18:43:40 +00:00
threads: -1 # Optional
2020-11-24 10:31:09 +00:00
# You can choose between different BuildTools to be used by this action
2021-04-01 19:53:05 +00:00
# ~~'SpraxDev' is my fork of SpigotMC's that introduces some changes (https://github.com/SpraxDev/Spigot-BuildTools/#breaking-changes)~~
# My (SpraxDev) provider is causing some builds to fail depending on the build environment
2020-11-24 10:31:09 +00:00
# Available: SpraxDev, SpigotMC
2021-04-01 19:53:05 +00:00
buildToolProvider: SpigotMC # Optional
```