Update DeferredItem.java #14
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
# File generated by the GradleUtils `setupGitHubActionsWorkflows` task, avoid modifying it directly | |
# The template can be found at https://github.com/neoforged/GradleUtils/blob/44d9e09cfa2c6032b84ac40495ea5ab7d64fe521/src/actionsTemplate/resources/.github/workflows/build-prs.yml | |
name: Build PRs | |
on: | |
pull_request: | |
types: | |
- synchronize | |
- opened | |
- ready_for_review | |
- reopened | |
push: | |
branches: | |
- 'feature/**' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1000 | |
fetch-tags: true | |
# GradleUtils will append the branch name to the version, | |
# but for that we need a properly checked out branch | |
- name: Create branch for commit | |
run: | |
git switch -C pr-${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.ref }} | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup with Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: setup | |
cache-read-only: false | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build | |
cache-read-only: false | |
- name: Run JCC | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: checkJarCompatibility | |
cache-read-only: false | |
- name: Publish artifacts | |
uses: neoforged/action-pr-publishing/upload@v1 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: jcc | |
path: jcc.json |