Merge pull request #188 from Theobl08/1.20-main #101
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
name: build | |
on: [ pull_request, push ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
java: [ 17 ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v2 | |
- name: setup jdk ${{ matrix.java }} | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ matrix.java }} | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/loom-cache | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: make gradle wrapper executable | |
run: chmod +x ./gradlew | |
- name: datagen | |
run: ./gradlew runDatagen | |
- name: build | |
run: ./gradlew build | |
# Uncomment these lines to upload jars to github artifacts: | |
# - name: upload fabric artifact | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: fabric | |
# path: | | |
# fabric/build/libs/*.jar | |
# !**/*shadow* | |
# !**/*sources* | |
# | |
# - name: upload forge artifact | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: forge | |
# path: | | |
# forge/build/libs/*.jar | |
# !**/*shadow* | |
# !**/*sources* |