Skip to content

Commit

Permalink
chore: v1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PeyaPeyaPeyang authored Dec 31, 2024
2 parents 4de95a4 + 242e98f commit 3424fc2
Show file tree
Hide file tree
Showing 57 changed files with 527 additions and 328 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/build-scenamatica.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,19 @@ on:
secrets:
token:
required: true

inputs:
profile:
default: debug
type: string
required: true
artifact:
default: scenamatica
type: string
required: true
pull-request:
default: false
type: boolean
required: true
jobs:
build:
name: Build with Maven
Expand All @@ -26,19 +38,20 @@ jobs:
- name: Try to restore cache
uses: actions/cache/restore@v4
id: restore-cache
if: "!inputs.pull-request"
with:
key: maven-cache-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository
enableCrossOsArchive: true
- name: Collect dependencies without NMS
if: steps.restore-cache.outputs.cache-hit != 'true'
if: "!(inputs.pull-request || steps.restore-cache.outputs.cache-hit == 'true')"
run: |
mvn dependency:go-offline -f Scenamatica/pom.xml
mvn dependency:go-offline -f Bookkeeper/pom.xml
# 失敗することが前提なので↓
continue-on-error: true
- name: Cache dependencies without NMS
if: steps.restore-cache.outputs.cache-hit != 'true'
if: "!(inputs.pull-request || steps.restore-cache.outputs.cache-hit == 'true')"
uses: actions/cache/save@v4
id: cache-dependencies
with:
Expand All @@ -65,11 +78,11 @@ jobs:
run: |
cd Scenamatica
chmod +x build.sh
./build.sh -D"jar.finalName=Scenamatica" -P debug
./build.sh -D"jar.finalName=Scenamatica" -P ${{ inputs.profile }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: scenamatica
name: ${{ inputs.artifact }}
path: Scenamatica/ScenamaticaPlugin/target/Scenamatica.jar
retention-days: 1
if-no-files-found: error
27 changes: 2 additions & 25 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,35 +44,12 @@ jobs:
uses: github/codeql-action/init@v3
with:
languages: java
##### NMS 以外のキャッシュを利かせる #####
- name: Try to restore cache
uses: actions/cache/restore@v4
id: restore-cache
with:
key: maven-cache-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository
enableCrossOsArchive: true
- name: Collect dependencies without NMS
if: steps.restore-cache.outputs.cache-hit != 'true'
run: |
mvn dependency:go-offline -f Scenamatica/pom.xml
mvn dependency:go-offline -f Bookkeeper/pom.xml
# 失敗することが前提なので↓
continue-on-error: true
- name: Cache dependencies without NMS
if: steps.restore-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
id: cache-dependencies
with:
key: maven-cache-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository
enableCrossOsArchive: true
##### おわり of NMS 以外のキャッシュを利かせる #####
- name: Deploy NMS
uses: TeamKun/NMSAccess@v2
with:
access-token: ${{ secrets.token }}
access-token: ${{ secrets.GH_PAT }}
versions: |
1.18.1 # v1_18_R1
1.17.1 # v1_17_R1
1.16.5 # v1_16_R3
1.16.3 # v1_16_R2
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/scenamatica-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
paths:
- "Scenamatica/**"
branches:
- main
- develop
pull_request:
paths:
- "Scenamatica/**"
Expand All @@ -20,6 +23,10 @@ jobs:
uses: "./.github/workflows/build-scenamatica.yml"
secrets:
token: ${{ secrets.GH_PAT }}
with:
artifact: scenamatica
profile: debug
pull-request: ${{ github.event_name == 'pull_request' }}
self-tests:
name: Self-test with Scenamatica
runs-on: ubuntu-latest
Expand Down
22 changes: 11 additions & 11 deletions Scenamatica/NMSBridge/NMSCore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kunlab.scenamatica</groupId>
<artifactId>NMSBridge</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -23,62 +23,62 @@
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>NMSTypes</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
</dependency>

<!-- NMS Implementions -->
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>v1_13_R1</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>v1_13_R2</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>v1_14_R1</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>v1_15_R1</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>v1_16_R1</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>v1_16_R2</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>v1_16_R3</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>v1_17_R1</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>v1_18_R1</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion Scenamatica/NMSBridge/NMSTypes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kunlab.scenamatica</groupId>
<artifactId>NMSBridge</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion Scenamatica/NMSBridge/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kunlab.scenamatica</groupId>
<artifactId>Scenamatica</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
</parent>

<artifactId>NMSBridge</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions Scenamatica/NMSBridge/v1_13_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kunlab.scenamatica</groupId>
<artifactId>NMSBridge</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -23,7 +23,7 @@
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>NMSTypes</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>com.destroystokyo.paper</groupId>
Expand Down
4 changes: 2 additions & 2 deletions Scenamatica/NMSBridge/v1_13_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kunlab.scenamatica</groupId>
<artifactId>NMSBridge</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -23,7 +23,7 @@
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>NMSTypes</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>com.destroystokyo.paper</groupId>
Expand Down
4 changes: 2 additions & 2 deletions Scenamatica/NMSBridge/v1_14_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kunlab.scenamatica</groupId>
<artifactId>NMSBridge</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -23,7 +23,7 @@
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>NMSTypes</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>com.destroystokyo.paper</groupId>
Expand Down
4 changes: 2 additions & 2 deletions Scenamatica/NMSBridge/v1_15_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kunlab.scenamatica</groupId>
<artifactId>NMSBridge</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -23,7 +23,7 @@
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>NMSTypes</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>com.destroystokyo.paper</groupId>
Expand Down
4 changes: 2 additions & 2 deletions Scenamatica/NMSBridge/v1_16_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kunlab.scenamatica</groupId>
<artifactId>NMSBridge</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -23,7 +23,7 @@
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>NMSTypes</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>com.destroystokyo.paper</groupId>
Expand Down
4 changes: 2 additions & 2 deletions Scenamatica/NMSBridge/v1_16_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kunlab.scenamatica</groupId>
<artifactId>NMSBridge</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -23,7 +23,7 @@
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>NMSTypes</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>com.destroystokyo.paper</groupId>
Expand Down
4 changes: 2 additions & 2 deletions Scenamatica/NMSBridge/v1_16_R3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kunlab.scenamatica</groupId>
<artifactId>NMSBridge</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -23,7 +23,7 @@
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>NMSTypes</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>com.destroystokyo.paper</groupId>
Expand Down
4 changes: 2 additions & 2 deletions Scenamatica/NMSBridge/v1_17_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kunlab.scenamatica</groupId>
<artifactId>NMSBridge</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand All @@ -23,7 +23,7 @@
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>NMSTypes</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>io.papermc.paper</groupId>
Expand Down
4 changes: 2 additions & 2 deletions Scenamatica/NMSBridge/v1_18_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kunlab.scenamatica</groupId>
<artifactId>NMSBridge</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -65,7 +65,7 @@
<dependency>
<groupId>org.kunlab.scenamatica.nms</groupId>
<artifactId>NMSTypes</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>io.papermc.paper</groupId>
Expand Down
4 changes: 2 additions & 2 deletions Scenamatica/ScenamaticaAPI/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kunlab.scenamatica</groupId>
<artifactId>Scenamatica</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
</parent>

<artifactId>ScenamaticaAPI</artifactId>
Expand All @@ -21,7 +21,7 @@
<dependency>
<groupId>org.kunlab.scenamatica</groupId>
<artifactId>ScenamaticaModels</artifactId>
<version>1.6.1</version>
<version>1.6.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
Loading

0 comments on commit 3424fc2

Please sign in to comment.