13 Commits

Author SHA1 Message Date
b5b84d21fc Update workflow file
Some checks failed
build / build (21) (push) Successful in 4m27s
build / upload-release (push) Failing after 8s
2025-01-21 03:43:53 +05:00
212c1c11a6 Update workflow file
Some checks failed
build / build (21) (push) Successful in 13m57s
build / upload-release (push) Failing after 8s
2025-01-21 03:28:15 +05:00
908701152e Update workflow file
Some checks failed
build / upload-release (push) Has been cancelled
build / build (21) (push) Has been cancelled
2025-01-21 03:24:20 +05:00
ac3d2b8632 Update workflow file
All checks were successful
build / build (21) (push) Successful in 14m25s
build / upload-release (push) Successful in 23s
2025-01-21 03:06:25 +05:00
3adfd20d72 Rollback
Some checks failed
build / upload-release (push) Blocked by required conditions
build / build (17) (push) Has been cancelled
2025-01-21 03:03:53 +05:00
bb1a6be978 Rollback
Some checks failed
build / upload-release (push) Blocked by required conditions
build / build (17) (push) Has been cancelled
2025-01-21 02:56:22 +05:00
58125c04df Again update workflow
Some checks failed
build / upload-release (push) Blocked by required conditions
build / build (17) (push) Has been cancelled
2025-01-21 02:55:40 +05:00
c52aebf2a8 Again update workflow
Some checks failed
build / build (17) (push) Has been cancelled
2025-01-21 02:47:25 +05:00
ccd632e0c3 Again update workflow
Some checks failed
build / build (push) Failing after 20s
2025-01-21 02:46:41 +05:00
956d2e6b53 Again update workflow
Some checks failed
build / build (push) Failing after 10s
2025-01-21 02:45:47 +05:00
ed146f441d Test 2025-01-21 02:45:24 +05:00
be9a4bdd59 Change workflow file
Some checks failed
build / build (17) (push) Failing after 2m44s
2025-01-21 02:39:28 +05:00
2c386caace Add dependency
Some checks failed
build / build (17) (push) Has been cancelled
2025-01-20 22:16:53 +05:00
3 changed files with 46 additions and 19 deletions

View File

@ -6,36 +6,60 @@ on:
jobs: jobs:
build: build:
env:
RUN_NUMBER: ${{ gitea.run_number }}
strategy: strategy:
matrix: matrix:
java: [ 17 ] java: [ '21' ]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: checkout repository - name: Checkout Code
uses: https://git.bitheaven.ru/actions/checkout@v2 uses: actions/checkout@v4
- name: setup jdk ${{ matrix.java }} - name: Setup JDK ${{ matrix.java }}
uses: https://git.bitheaven.ru/actions/setup-java@v1 uses: actions/setup-java@v4
with: with:
distribution: 'liberica'
java-version: ${{ matrix.java }} java-version: ${{ matrix.java }}
- uses: https://git.bitheaven.ru/actions/cache@v2 - name: Cache Gradle packages
uses: actions/cache@v4
with: with:
path: | path: |
~/.gradle/caches ~/.gradle/caches
~/.gradle/loom-cache
~/.gradle/wrapper ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }} key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle restore-keys: |
${{ runner.os }}-gradle-
- name: make gradle wrapper executable - name: Build with Gradle
run: chmod +x ./gradlew
- name: build
run: ./gradlew build run: ./gradlew build
- name: capture build artifacts - name: Upload Mod JAR
uses: https://git.bitheaven.ru/actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: Artifacts name: create-air-fabric
path: build/libs/ 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/**

View File

@ -10,7 +10,7 @@ targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name archivesBaseName = project.archives_base_name
group = project.maven_group 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}" : "") version = "${mod_version}+${minecraft_version}" + (buildNumber != null ? "-${buildNumber}" : "")
repositories { repositories {
@ -71,6 +71,8 @@ dependencies {
modLocalRuntime("maven.modrinth:lazydfu:${lazydfu_version}") modLocalRuntime("maven.modrinth:lazydfu:${lazydfu_version}")
modLocalRuntime("com.terraformersmc:modmenu:${modmenu_version}") modLocalRuntime("com.terraformersmc:modmenu:${modmenu_version}")
include(implementation(annotationProcessor("io.github.llamalad7:mixinextras-fabric:0.4.1")))
// Recipe Viewers - Create Fabric supports JEI, REI, and EMI. // Recipe Viewers - Create Fabric supports JEI, REI, and EMI.
// See root gradle.properties to choose which to use at runtime. // See root gradle.properties to choose which to use at runtime.
switch (recipe_viewer.toLowerCase(Locale.ROOT)) { switch (recipe_viewer.toLowerCase(Locale.ROOT)) {

View File

@ -6,6 +6,7 @@ import net.minecraft.world.level.material.Fluid;
import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect; import org.spongepowered.asm.mixin.injection.Redirect;
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import com.simibubi.create.content.equipment.armor.DivingHelmetItem; import com.simibubi.create.content.equipment.armor.DivingHelmetItem;
import ru.bitheaven.createairfabric.CreateAirFabric; import ru.bitheaven.createairfabric.CreateAirFabric;