Skip to content

Port to 1.18.x

Port to 1.18.x #428

Workflow file for this run

name: Build
on: [ pull_request, push, workflow_dispatch ]
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'build.gradle') }}
- name: Build with Gradle
run: |
chmod +x gradlew
./gradlew build
- name: Merge Fabric & Forge JARs
run: |
chmod +x gradlew
./gradlew fusejars
- name: Upload artifacts (fabric)
uses: actions/upload-artifact@v4
with:
name: fabric
path: ${{ github.workspace }}/fabric/build/libs
- name: Upload artifacts (forge)
uses: actions/upload-artifact@v4
with:
name: forge
path: ${{ github.workspace }}/forge/build/libs
- name: Upload artifacts (ModFusioner merged jar)
uses: actions/upload-artifact@v4
with:
name: merged
path: ${{ github.workspace }}/build/merged