Skip to content

stuffs

stuffs #145

Workflow file for this run

# Automatically build the project and run any configured tests for every push and submitted pull request.
# This can help catch issues that only occur on certain platforms or Java versions, and provides a first line of defense against bad commits.
name: Build Winterly
on: [pull_request, push]
jobs:
build:
strategy:
matrix:
# Use these Java versions
java: [
17, # Current Java LTS & minimum supported by Minecraft
]
# Run on these operating systems
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
cache: gradle
- name: Make Gradle Wrapper Executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: Build
run: ./gradlew build
- uses: BrycensRanch/read-properties-action@v1
id: gradle_props
with:
file: gradle.properties
all: true
- name: Capture build artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: |
fabric/build/libs/winterly-fabric-${{ steps.gradle_props.outputs.mod_version }}.jar
fabric/build/libs/winterly-fabric-${{ steps.gradle_props.outputs.mod_version }}-sources.jar
neoforge/build/libs/winterly-neoforge-${{ steps.gradle_props.outputs.mod_version }}.jar
neoforge/build/libs/winterly-neoforge-${{ steps.gradle_props.outputs.mod_version }}-sources.jar