Skip to content

2.5.0 没别的

2.5.0 没别的 #311

Workflow file for this run

name: Build
on: [ pull_request, push, workflow_dispatch ]
jobs:
Build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- 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 & NeoForge JARs
run: |
chmod +x gradlew
./gradlew mergeJars
- name: Upload artifacts (fabric)
uses: actions/upload-artifact@v4
with:
name: fabric
path: ${{ github.workspace }}/fabric/build/libs
- name: Upload artifacts (neoforge)
uses: actions/upload-artifact@v4
with:
name: neoforge
path: ${{ github.workspace }}/neoforge/build/libs
- name: Upload artifacts (Forgix merged jar)
uses: actions/upload-artifact@v4
with:
name: merged
path: ${{ github.workspace }}/build/libs/forgix