Files
nugget/.github/workflows/build.yml
angel 2a5f50ec69
Some checks failed
Build and Artifact / build (pull_request) Failing after 2m37s
chore: update from java 21 to 25 inside of the workflow
2026-03-27 05:20:52 -05:00

60 lines
1.4 KiB
YAML

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 25
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '25'
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