Merge pull request #31 from MerchantPug/fix/compat-consistency #89
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 Status | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'microsoft' | |
java-version: 17 | |
cache: 'gradle' | |
- name: Validate Gradle Wrapper | |
uses: gradle/actions/wrapper-validation@v4 | |
- name: Grant execute permission for gradlew | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
run: ./gradlew build | |
env: | |
GRADLE_BUILD_CACHE_USER: ${{ secrets.GRADLE_BUILD_CACHE_USER }} | |
GRADLE_BUILD_CACHE_TOKEN: ${{ secrets.GRADLE_BUILD_CACHE_TOKEN }} | |
- name: Upload build artifacts (Quilt) | |
continue-on-error: true | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ github.event.repository.name }}-Quilt-${{ github.sha }} | |
path: | | |
build/libs/*.jar | |
!build/libs/*-dev.jar |