fabric & neoforge stable 1.3.1+1.21.11
All checks were successful
Build and Artifact / build (push) Successful in 2m46s
All checks were successful
Build and Artifact / build (push) Successful in 2m46s
This commit is contained in:
59
.github/workflows/build.yml
vendored
Normal file
59
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
name: Build and Artifact
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master, main ]
|
||||
pull_request:
|
||||
branches: [ master, main ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-24.04
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '21'
|
||||
cache: 'gradle'
|
||||
|
||||
- name: Cache Gradle packages
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
.gradle
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew clean build
|
||||
|
||||
- name: Upload Fabric JAR
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: nuggetmod-fabric
|
||||
path: fabric/build/libs/*.jar
|
||||
|
||||
- name: Upload NeoForge JAR
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: nuggetmod-neoforge
|
||||
path: neoforge/build/libs/*.jar
|
||||
|
||||
- name: Upload Common JAR
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: nuggetmod-common
|
||||
path: common/build/libs/*.jar
|
||||
|
||||
@@ -2,6 +2,15 @@ architectury {
|
||||
common rootProject.enabled_platforms.split(',')
|
||||
}
|
||||
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
resources {
|
||||
srcDir 'src/main/generated'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// We depend on Fabric Loader here to use the Fabric @Environment annotations,
|
||||
// which get remapped to the correct annotations on each platform.
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user