From f975230f14f102d9adef65a858a82cc800751dca Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Sun, 20 Sep 2026 10:23:18 +0200 Subject: [PATCH] =?UTF-8?q?[ci=20skip]=20migrate=20CI=20to=20namespace=20?= =?UTF-8?q?=F0=9F=9A=80=20(#1888)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gradle.yml | 20 +++++++++++++++----- README.md | 2 ++ 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 865c9390..f3d18540 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -6,18 +6,28 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-24.04 + runs-on: namespace-profile-linux-default steps: - name: Checkout Repository - uses: actions/checkout@v6 + uses: namespacelabs/nscloud-checkout-action@v9 with: persist-credentials: false + - 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: Set up Gradle - uses: gradle/actions/setup-gradle@v5 + uses: gradle/actions/setup-gradle@v6 + with: + cache-disabled: true # namespace handles this - name: Set up JDK 21 - uses: actions/setup-java@v5 + uses: actions/setup-java@v6 with: java-version: 21 distribution: 'zulu' + cache: "" # namespace handles this - name: Build with Gradle - run: ./gradlew build + run: ./gradlew --init-script=/tmp/init.gradle build diff --git a/README.md b/README.md index aa6527f0..fccffeb7 100644 --- a/README.md +++ b/README.md @@ -40,3 +40,5 @@ page. Translations are handled using [Crowdin](https://papermc-io.crowdin.com/velocity). If you want to translate a language not available on Crowdin, you might want to ask in the [Discord](https://discord.gg/papermc) about it. + +CI powered by namespace badge