Skip to content

feat: Compatible with Minecraft 1.21 #43

feat: Compatible with Minecraft 1.21

feat: Compatible with Minecraft 1.21 #43

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: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: checkout
uses: actions/checkout@v2
- name: set environmental variables
run: |
echo "GITHUB_USERNAME=$GITHUB_ACTOR" >> $GITHUB_ENV
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 21
cache: 'gradle'
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: capture build artifacts
uses: actions/upload-artifact@v2
with:
name: Artifacts
path: build/libs/