-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cfb44bb
commit 7922f4d
Showing
28 changed files
with
515 additions
and
327 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 |
---|---|---|
@@ -1,33 +1,31 @@ | ||
name: build | ||
|
||
on: [push, pull_request] | ||
on: [ pull_request, push ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [ 17 ] | ||
os: [ ubuntu-22.04 ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- name: Cache Brachyura directory | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
.brachyura | ||
~/.brachyura | ||
key: ${{ runner.os }}-brachyura-${{ hashFiles('**/Buildscript.java') }} | ||
restore-keys: ${{ runner.os }}-brachyura | ||
|
||
- name: Build with Brachyura | ||
run: java -jar brachyura-bootstrap-0.jar build | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: artifacts | ||
path: build/libs | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Validate gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
- name: Setup JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'microsoft' | ||
- name: Make gradle wrapper executable | ||
if: ${{ runner.os != 'Windows' }} | ||
run: chmod +x ./gradlew | ||
- name: build | ||
run: ./gradlew build | ||
- name: Capture build artifacts | ||
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Artifacts | ||
path: build/libs/ |
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 |
---|---|---|
|
@@ -11,36 +11,29 @@ jobs: | |
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- name: Cache Brachyura directory | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
.brachyura | ||
~/.brachyura | ||
key: ${{ runner.os }}-brachyura-${{ hashFiles('**/Buildscript.java') }} | ||
restore-keys: ${{ runner.os }}-brachyura | ||
|
||
- name: Build with Brachyura | ||
run: java -jar brachyura-bootstrap-0.jar build | ||
|
||
- name: Publish artifacts to CurseForge | ||
- name: Change wrapper permissions | ||
run: chmod +x ./gradlew | ||
- name: Build artifacts | ||
run: ./gradlew build | ||
- name: publish artifacts | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
curseforge-id: 552628 | ||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | ||
|
||
files: build/libs/!(*-@(dev|sources|javadoc)).jar | ||
files: | | ||
build/libs/!(*-@(dev|sources|javadoc)).jar | ||
build/libs/*-@(dev|sources|javadoc).jar | ||
version-type: beta | ||
loaders: | | ||
fabric | ||
quilt | ||
game-version-filter: releases | ||
|
||
dependencies: | | ||
|
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 |
---|---|---|
|
@@ -11,26 +11,16 @@ jobs: | |
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- name: Cache Brachyura directory | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
.brachyura | ||
~/.brachyura | ||
key: ${{ runner.os }}-brachyura-${{ hashFiles('**/Buildscript.java') }} | ||
restore-keys: ${{ runner.os }}-brachyura | ||
|
||
- name: Build with Brachyura | ||
run: java -jar brachyura-bootstrap-0.jar build | ||
|
||
- name: Publish artifacts to GitHub | ||
- name: Change wrapper permissions | ||
run: chmod +x ./gradlew | ||
- name: Build artifacts | ||
run: ./gradlew build | ||
- name: Upload assets to GitHub | ||
uses: AButler/[email protected] | ||
with: | ||
files: 'build/libs/*' | ||
repo-token: ${{ secrets.GH_TOKEN }} | ||
repo-token: ${{ secrets.GH_TOKEN }} |
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 |
---|---|---|
|
@@ -11,39 +11,31 @@ jobs: | |
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- name: Cache Brachyura directory | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
.brachyura | ||
~/.brachyura | ||
key: ${{ runner.os }}-brachyura-${{ hashFiles('**/Buildscript.java') }} | ||
restore-keys: ${{ runner.os }}-brachyura | ||
|
||
- name: Build with Brachyura | ||
run: java -jar brachyura-bootstrap-0.jar build | ||
|
||
- name: Publish artifacts to Modrinth | ||
- name: Change wrapper permissions | ||
run: chmod +x ./gradlew | ||
- name: Build artifacts | ||
run: ./gradlew build | ||
- name: publish artifacts | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
modrinth-id: CEvDfomf | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
|
||
files: build/libs/!(*-@(dev|sources|javadoc)).jar | ||
files: | | ||
build/libs/!(*-@(dev|sources|javadoc)).jar | ||
build/libs/*-@(dev|sources|javadoc).jar | ||
version-type: beta | ||
loaders: | | ||
fabric | ||
quilt | ||
game-version-filter: releases | ||
game-version-filter: releases | ||
|
||
dependencies: | | ||
fabric-api | ||
cloth-config | ||
|
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
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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,73 @@ | ||
plugins { | ||
id "fabric-loom" version "1.4-SNAPSHOT" | ||
} | ||
|
||
version = project.mod_version | ||
group = project.maven_group | ||
|
||
repositories { | ||
maven { | ||
url "https://api.modrinth.com/maven" | ||
content { includeGroup "maven.modrinth" } | ||
} | ||
maven { url "https://maven.ladysnake.org/releases" } //CCA | ||
maven { url "https://maven.terraformersmc.com" } //trinkets | ||
maven { url "https://maven.wispforest.io" } //owo-lib | ||
maven { url "https://maven.shedaniel.me/" } //cloth-config | ||
} | ||
|
||
dependencies { | ||
minecraft "com.mojang:minecraft:${project.minecraft_version}" | ||
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" | ||
|
||
modImplementation "net.fabricmc:fabric-loader:${project.fabric_loader}" | ||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api}" | ||
modImplementation "dev.emi:trinkets:${project.trinkets_version}" | ||
|
||
// we don't include these because trinkets already does it | ||
modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-base:${project.cca_version}" | ||
modImplementation "dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${project.cca_version}" | ||
|
||
modImplementation include("dev.onyxstudios.cardinal-components-api:cardinal-components-world:${project.cca_version}") | ||
|
||
// use modApi when owo lib is compatible with mc version | ||
modCompileOnlyApi "io.wispforest:owo-lib:${project.owo_lib}" | ||
|
||
modApi("me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config}") { exclude(group: "net.fabricmc.fabric-api") } | ||
modApi "com.terraformersmc:modmenu:${project.modmenu_version}" | ||
|
||
modLocalRuntime "maven.modrinth:here-be-no-dragons:1.0.0" | ||
modLocalRuntime "dev.emi:emi-fabric:1.0.29+1.20.4" | ||
} | ||
|
||
loom { | ||
accessWidenerPath = file("src/main/resources/winterly.accesswidener") | ||
} | ||
|
||
base { | ||
archivesName = project.archives_base_name | ||
} | ||
|
||
processResources { | ||
inputs.property "version", project.version | ||
filesMatching("fabric.mod.json") { | ||
expand "version": project.version | ||
} | ||
} | ||
|
||
tasks.withType(JavaCompile).configureEach { | ||
it.options.encoding = "UTF-8" | ||
it.options.release = 17 | ||
} | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
withSourcesJar() | ||
} | ||
|
||
jar { | ||
from("LICENSE") { | ||
rename { "${it}_${project.base.archivesName.get()}"} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.