mirror of
https://github.com/GayPizzaSpecifications/concrete.git
synced 2025-08-03 13:11:33 +00:00
GitHub workflow for building samples.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
name: Build
|
||||
name: Plugin
|
||||
on: [push]
|
||||
jobs:
|
||||
build:
|
25
.github/workflows/samples.yml
vendored
Normal file
25
.github/workflows/samples.yml
vendored
Normal 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
|
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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")
|
||||
|
Reference in New Issue
Block a user