Skip to content

[feat] hypixel smp #268

[feat] hypixel smp

[feat] hypixel smp #268

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:
branches-ignore:
- 'crowdin_*'
jobs:
build:
strategy:
matrix:
java: [
21,
]
os: [ ubuntu-22.04, windows-2022 ]
runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup JDK${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: setup gradle
uses: gradle/gradle-build-action@v2.12.0
with:
gradle-home-cache-includes: |
caches
notifications
loom-cache
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: build & run tests
run: ./gradlew check build
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JACKFRED_MAVEN_USER: ${{ secrets.JACKFRED_MAVEN_USER }}
JACKFRED_MAVEN_PASS: ${{ secrets.JACKFRED_MAVEN_PASS }}
- name: capture build artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/