Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,30 @@ jobs:
build:
# Only run on PRs if the source branch is on someone else's repo
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
runs-on: ubuntu-latest
runs-on: namespace-profile-paper
steps:
- name: Checkout Git Repository
uses: actions/checkout@v6
uses: namespacelabs/nscloud-checkout-action@v9
- name: Set up JDK
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
distribution: 'temurin'
java-version: '25'
- name: Setup Gradle
cache: "" # namespace handles this
- name: Set up cache
uses: namespacelabs/nscloud-cache-action@v1
with:
cache: gradle
- name: Setup gradle build cache
run: |
nsc cache gradle setup --init-gradle /tmp/init.gradle
- name: Setup gradle
uses: gradle/actions/setup-gradle@v6
with:
cache-disabled: true # namespace handles this
- name: Configure Git User Details
run: git config --global user.email "actions@github.com" && git config --global user.name "Github Actions"
- name: Apply Patches
run: ./gradlew applyAllPatches --stacktrace
run: ./gradlew --init-script=/tmp/init.gradle applyAllPatches --stacktrace
- name: Build
run: ./gradlew build
run: ./gradlew --init-script=/tmp/init.gradle build
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,5 @@ found in `./patches` and its subdirectories except when noted otherwise.
The fork is based off of PaperMC's fork example found [here](https://github.com/PaperMC/paperweight-examples).
As such, it contains modifications to it in this project, please see the repository for license information
of modified files.

<img src="https://papermc.io/assets/misc/namespace-oss-badge.svg?project=folia" alt="CI powered by namespace badge" />
Loading