Compare commits
13 Commits
44e0b43fbe
...
3b783bd595
Author | SHA1 | Date |
---|---|---|
Timon Michel | 3b783bd595 | |
EinDev | 988d8beba5 | |
EinDev | 487dc9e848 | |
Timon Michel | b321b7710b | |
EinDev | 8eb2432bf8 | |
EinDev | a8b0dcb324 | |
EinDev | 1f9b290faf | |
EinDev | 20ff3f2f1a | |
EinDev | 60cd01ea1c | |
EinDev | 950c35eb97 | |
EinDev | 56cd9a0468 | |
EinDev | 0cb6a84e5e | |
EinDev | 188b13ba1a |
|
@ -0,0 +1,133 @@
|
|||
---
|
||||
name: Build the plugin
|
||||
on: [ push ]
|
||||
jobs:
|
||||
install-dependencies:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Cache maven repository
|
||||
id: cache-mvn
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.m2
|
||||
key: ${{ runner.os }}-maven
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Set up Maven
|
||||
uses: stCarolas/setup-maven@v4.5
|
||||
|
||||
- name: Install Spigot 1.20.4
|
||||
uses: SpraxDev/Action-SpigotMC@v4
|
||||
with:
|
||||
versions: 1.20.4
|
||||
remapped: true
|
||||
buildToolProvider: SpigotMC
|
||||
|
||||
- name: Install Spigot 1.20.2
|
||||
uses: SpraxDev/Action-SpigotMC@v4
|
||||
with:
|
||||
versions: 1.20.2
|
||||
remapped: true
|
||||
buildToolProvider: SpigotMC
|
||||
|
||||
- name: Install Spigot 1.20.1
|
||||
uses: SpraxDev/Action-SpigotMC@v4
|
||||
with:
|
||||
versions: 1.20.1
|
||||
remapped: true
|
||||
buildToolProvider: SpigotMC
|
||||
|
||||
- name: Install Spigot 1.19.4
|
||||
uses: SpraxDev/Action-SpigotMC@v4
|
||||
with:
|
||||
versions: 1.19.4
|
||||
remapped: true
|
||||
buildToolProvider: SpigotMC
|
||||
|
||||
- name: Install Spigot 1.18.2
|
||||
uses: SpraxDev/Action-SpigotMC@v4
|
||||
with:
|
||||
versions: 1.18.2
|
||||
remapped: true
|
||||
buildToolProvider: SpigotMC
|
||||
|
||||
- name: Check out nightcore
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'nulli0n/nightcore-spigot'
|
||||
ref: 'f70589cbe2b2fde92a1941e76a408dc1296490c5'
|
||||
path: 'nightcore'
|
||||
|
||||
- name: Install nightcore
|
||||
run: mvn install
|
||||
working-directory: ./nightcore
|
||||
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ install-dependencies ]
|
||||
strategy:
|
||||
matrix:
|
||||
spigot:
|
||||
- 1.20.2-R0.1-SNAPSHOT
|
||||
- 1.20.1-R0.1-SNAPSHOT
|
||||
- 1.19.4-R0.1-SNAPSHOT
|
||||
- 1.18.2-R0.1-SNAPSHOT
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Cache maven repository
|
||||
id: cache-mvn
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.m2
|
||||
key: ${{ runner.os }}-maven
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Set up Maven
|
||||
uses: stCarolas/setup-maven@v4.5
|
||||
|
||||
- name: Package plugin
|
||||
run: mvn package -Dspigot.version=${{ matrix.spigot }}
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ install-dependencies ]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Cache maven repository
|
||||
id: cache-mvn
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.m2
|
||||
key: ${{ runner.os }}-maven
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Set up Maven
|
||||
uses: stCarolas/setup-maven@v4.5
|
||||
|
||||
- name: Package plugin
|
||||
run: mvn package
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ExcellentEnchants
|
||||
path: target/*.jar
|
|
@ -15,6 +15,7 @@
|
|||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<spigot.version>1.20.4-R0.1-SNAPSHOT</spigot.version>
|
||||
</properties>
|
||||
|
||||
<repositories>
|
||||
|
@ -44,7 +45,7 @@
|
|||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot-api</artifactId>
|
||||
<version>1.20.4-R0.1-SNAPSHOT</version>
|
||||
<version>${spigot.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>fr.neatmonster</groupId>
|
||||
|
|
Loading…
Reference in New Issue