Compare commits
13 Commits
createairf
...
b5b84d21fc
Author | SHA1 | Date | |
---|---|---|---|
b5b84d21fc | |||
212c1c11a6 | |||
908701152e | |||
ac3d2b8632 | |||
3adfd20d72 | |||
bb1a6be978 | |||
58125c04df | |||
c52aebf2a8 | |||
ccd632e0c3 | |||
956d2e6b53 | |||
ed146f441d | |||
be9a4bdd59 | |||
2c386caace |
@ -6,36 +6,60 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
env:
|
||||
RUN_NUMBER: ${{ gitea.run_number }}
|
||||
strategy:
|
||||
matrix:
|
||||
java: [ 17 ]
|
||||
java: [ '21' ]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout repository
|
||||
uses: https://git.bitheaven.ru/actions/checkout@v2
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: setup jdk ${{ matrix.java }}
|
||||
uses: https://git.bitheaven.ru/actions/setup-java@v1
|
||||
- name: Setup JDK ${{ matrix.java }}
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'liberica'
|
||||
java-version: ${{ matrix.java }}
|
||||
|
||||
- uses: https://git.bitheaven.ru/actions/cache@v2
|
||||
- name: Cache Gradle packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/loom-cache
|
||||
~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
|
||||
restore-keys: ${{ runner.os }}-gradle
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
|
||||
- name: make gradle wrapper executable
|
||||
run: chmod +x ./gradlew
|
||||
|
||||
- name: build
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew build
|
||||
|
||||
- name: capture build artifacts
|
||||
uses: https://git.bitheaven.ru/actions/upload-artifact@v2
|
||||
- name: Upload Mod JAR
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Artifacts
|
||||
path: build/libs/
|
||||
name: create-air-fabric
|
||||
path: build/libs/*.jar
|
||||
|
||||
upload-release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Download build artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: create-air-fabric
|
||||
|
||||
- name: Extract files
|
||||
run: unzip create-air-fabric
|
||||
|
||||
- name: Make release
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
with:
|
||||
name: Create Air Fabric 1.0-${{ gitea.run_number }} for 1.20.1
|
||||
tag_name: createairfabric-1.0+1.20.1-${{ gitea.run_number }}
|
||||
md5sum: true
|
||||
sha256sum: true
|
||||
files: |-
|
||||
*.jar
|
||||
# build/libs/**
|
||||
|
@ -10,7 +10,7 @@ targetCompatibility = JavaVersion.VERSION_17
|
||||
archivesBaseName = project.archives_base_name
|
||||
group = project.maven_group
|
||||
|
||||
String buildNumber = System.getenv("GITEA_RUN_NUMBER")
|
||||
String buildNumber = System.getenv("RUN_NUMBER")
|
||||
version = "${mod_version}+${minecraft_version}" + (buildNumber != null ? "-${buildNumber}" : "")
|
||||
|
||||
repositories {
|
||||
@ -71,7 +71,9 @@ dependencies {
|
||||
modLocalRuntime("maven.modrinth:lazydfu:${lazydfu_version}")
|
||||
modLocalRuntime("com.terraformersmc:modmenu:${modmenu_version}")
|
||||
|
||||
// Recipe Viewers - Create Fabric supports JEI, REI, and EMI.
|
||||
include(implementation(annotationProcessor("io.github.llamalad7:mixinextras-fabric:0.4.1")))
|
||||
|
||||
// Recipe Viewers - Create Fabric supports JEI, REI, and EMI.
|
||||
// See root gradle.properties to choose which to use at runtime.
|
||||
switch (recipe_viewer.toLowerCase(Locale.ROOT)) {
|
||||
case "jei": modLocalRuntime("mezz.jei:jei-${minecraft_version}-fabric:${jei_version}"); break
|
||||
|
@ -6,6 +6,7 @@ import net.minecraft.world.level.material.Fluid;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
|
||||
import com.simibubi.create.content.equipment.armor.DivingHelmetItem;
|
||||
import ru.bitheaven.createairfabric.CreateAirFabric;
|
||||
|
||||
|
Reference in New Issue
Block a user