GitHub workflow for building samples.

This commit is contained in:
2023-01-25 19:55:10 -08:00
parent b297931915
commit 73d7019f2e
7 changed files with 31 additions and 6 deletions

View File

@ -1,4 +1,4 @@
name: Build
name: Plugin
on: [push]
jobs:
build:

25
.github/workflows/samples.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Samples
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build mixed sample with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: -P samples/mixed build
- name: Build shared sample with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: -P samples/shared build
- name: Build simple sample with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: -P samples/simple build

View File

@ -4,7 +4,7 @@ plugins {
concrete {
minecraftServerPath.set("server")
paperVersionGroup.set("1.19")
paperServerVersionGroup.set("1.19")
paperApiVersion.set("1.19.3-R0.1-SNAPSHOT")
acceptServerEula.set(true)
}

View File

@ -5,7 +5,7 @@ plugins {
concrete {
minecraftServerPath.set("server")
paperVersionGroup.set("1.19")
paperServerVersionGroup.set("1.19")
paperApiVersion.set("1.19.3-R0.1-SNAPSHOT")
acceptServerEula.set(true)
}

View File

@ -4,7 +4,7 @@ plugins {
concrete {
minecraftServerPath.set("server")
paperVersionGroup.set("1.19")
paperServerVersionGroup.set("1.19")
paperApiVersion.set("1.19.3-R0.1-SNAPSHOT")
acceptServerEula.set(true)
}

View File

@ -3,7 +3,7 @@ package gay.pizza.foundation.concrete
import org.gradle.api.provider.Property
interface ConcreteExtension {
val paperVersionGroup: Property<String>
val paperServerVersionGroup: Property<String>
val paperApiVersion: Property<String>
val minecraftServerPath: Property<String>
val acceptServerEula: Property<Boolean>

View File

@ -31,7 +31,7 @@ open class SetupPaperServer : DefaultTask() {
val paperJarFile = project.file("${concrete.minecraftServerPath.get()}/paper.jar")
if (!paperJarFile.exists() || shouldUpdatePaperServer) {
downloadLatestBuild(concrete.paperVersionGroup.get(), paperJarFile)
downloadLatestBuild(concrete.paperServerVersionGroup.get(), paperJarFile)
}
val paperPluginsDirectory = minecraftServerDirectory.resolve("plugins")