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