-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert(workflows): add workflows back
- Loading branch information
1 parent
e453835
commit 85fa007
Showing
2 changed files
with
141 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: "Release" | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
release: | ||
name: "Release" | ||
runs-on: "ubuntu-latest" | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 21 | ||
distribution: temurin | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
|
||
- name: Build with Gradle Wrapper | ||
run: | | ||
cd 24w33a-1.21.4-fabric/ | ||
./gradlew build | ||
env: | ||
GITHUB_USERNAME: ${{ secrets.GH_PKG_USERNAME }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: 24w33a-1.21.4-fabric/build/libs/*.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
name: "Test build" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test-build: | ||
name: "Test build" | ||
runs-on: "ubuntu-latest" | ||
permissions: | ||
contents: read | ||
strategy: | ||
matrix: | ||
dir: | ||
- common | ||
- 1.16-1.16.1-fabric | ||
- 1.16.2-1.16.5-fabric | ||
- 1.17-1.17.1-fabric | ||
- 1.18-1.18.2-fabric | ||
- 1.19-1.19.1-fabric | ||
- 1.19.2-fabric | ||
- 1.19.3-1.19.4-fabric | ||
- 1.20-1.20.1-fabric | ||
- 1.20.2-24w13a-fabric | ||
- 24w14a-1.21.1-fabric | ||
- 24w33a-fabric | ||
- 1.8.9-1.10-forge | ||
- 1.10.2-1.11-forge | ||
- 1.11.2-1.12.2-forge | ||
- 1.18.2-forge | ||
- 1.19.2-forge | ||
- 1.19.4-forge | ||
- 1.20.1-forge | ||
include: | ||
- dir: common | ||
java-verion: 8 | ||
- dir: 1.16-1.16.1-fabric | ||
java-verion: 17 | ||
- dir: 1.16.2-1.16.5-fabric | ||
java-verion: 17 | ||
- dir: 1.17-1.17.1-fabric | ||
java-verion: 17 | ||
- dir: 1.18-1.18.2-fabric | ||
java-verion: 17 | ||
- dir: 1.19-1.19.1-fabric | ||
java-verion: 17 | ||
- dir: 1.19.2-fabric | ||
java-verion: 17 | ||
- dir: 1.19.3-1.19.4-fabric | ||
java-verion: 17 | ||
- dir: 1.20-1.20.1-fabric | ||
java-verion: 17 | ||
- dir: 1.20.2-24w13a-fabric | ||
java-verion: 17 | ||
- dir: 24w14a-1.21.1-fabric | ||
java-verion: 21 | ||
- dir: 24w33a-fabric | ||
java-verion: 21 | ||
- dir: 1.8.9-1.10-forge | ||
java-verion: 8 | ||
decompile: true | ||
- dir: 1.10.2-1.11-forge | ||
java-verion: 8 | ||
- dir: 1.11.2-1.12.2-forge | ||
java-verion: 8 | ||
- dir: 1.18.2-forge | ||
java-verion: 17 | ||
- dir: 1.19.2-forge | ||
java-verion: 17 | ||
- dir: 1.19.4-forge | ||
java-verion: 17 | ||
- dir: 1.20.1-forge | ||
java-verion: 17 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK ${{ matrix.java-verion }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.java-verion }} | ||
distribution: temurin | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
|
||
- name: Build with Gradle Wrapper | ||
run: | | ||
cd ${{ matrix.dir }}/ | ||
chmod +x gradlew | ||
if [ -n "$DECOMPILE" ]; then | ||
./gradlew setupDecompWorkspace | ||
fi | ||
./gradlew build | ||
env: | ||
GITHUB_USERNAME: ${{ secrets.GH_PKG_USERNAME }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DECOMPILE: ${{ matrix.decompile }} |