v5.2.0+1.20.1 #9
Workflow file for this run
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: | |
pull_request: | |
types: | |
- opened | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Environment Variables | |
run: env | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup Java | |
uses: actions/[email protected] | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
- name: Make Gradle Wrapper Executable | |
if: ${{ runner.os != 'Windows' }} | |
run: chmod +x ./gradlew | |
- name: Datagen | |
run: ./gradlew runDatagen | |
- name: Copy Datagen | |
run: mkdir -p src/main/generated/data/mystical/ && cp -r src/main/generated/assets/mystical/lang src/main/generated/data/mystical/ | |
- name: Upload Generated Data | |
uses: actions/upload-artifact@v4 | |
with: | |
name: GeneratedData | |
path: src/main/generated/ | |
overwrite: true | |
- name: Build | |
run: ./gradlew build | |
- name: Upload JARs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: JARs | |
path: build/libs/* | |
- name: Game Test | |
run: mkdir build/gametest && echo "eula=true" >> build/gametest/eula.txt && ./gradlew runGameTest # ty modmuss |