Update Ubuntu to 24.04 #988
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [ push, pull_request, workflow_dispatch ] | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Validate Gradle Wrapper | |
uses: gradle/actions/wrapper-validation@v3 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 21 | |
check-latest: true | |
- name: Cache Gradle configuration | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle | |
.gradle | |
build | |
fabric/.gradle | |
fabric/build | |
neoforge/.gradle | |
neoforge/build | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/LICENSE') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Delete old files | |
run: rm -rf build/libs fabric/build/libs neoforge/build/libs | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: VanillaDisable-Artifacts | |
path: | | |
fabric/build/libs/*.jar | |
neoforge/build/libs/*-all.jar |