Skip to content

badges! 🎉

badges! 🎉 #48

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 defence
# against bad commits.
name: build
on: [push]
jobs:
build:
strategy:
matrix:
dir: ["Fabric", "Forge"]
runs-on: "ubuntu-22.04"
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 17
- name: Make Gradle Wrapper Executable
working-directory: ${{ matrix.dir }}
run: chmod +x ./gradlew
- name: Build
working-directory: ${{ matrix.dir }}
run: ./gradlew build
- name: capture build artifacts
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: ${{ matrix.dir }}/build/libs/