This repository has been archived by the owner on Jan 8, 2025. It is now read-only.
Update Pyrite (#57) #203
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, push] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: validate gradle wrapper | |
uses: gradle/wrapper-validation-action@v2 | |
- name: setup jdk 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: 'microsoft' | |
- name: make gradle wrapper executable | |
run: chmod +x ./gradlew | |
- name: build | |
run: ./gradlew :jar :mrpack --stacktrace | |
- run: mkdir test/run && echo "eula=true" >> test/run/eula.txt | |
- name: test | |
run: ./gradlew :test:runProductionAutoTestServer --stacktrace | |
- name: capture build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Artifacts | |
path: build/libs/ |