Tweaks for recent primfire changes #2946
Workflow file for this run
This file contains hidden or 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
# Builds the project with every commit to confirm that the mod works. | |
# Based on fabric-example-mod's workflow, with more comments. | |
name: build | |
on: [pull_request, push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
# Use these Java versions | |
java: [21] # Current Java LTS & minimum supported by Minecraft | |
# Test on both Linux and Windows | |
os: [ubuntu-24.04, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: setup jdk ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: microsoft | |
- name: setup gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: build | |
run: ./gradlew build | |
- name: capture build artifacts | |
# Only capture artifacts from one OS (Linux) | |
if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Artifacts | |
path: build/libs/ |