[ci skip] migrate CI to namespace 🚀 (#1888)

This commit is contained in:
MiniDigger | Martin
2026-09-20 10:23:18 +02:00
committed by GitHub
parent a6f9de9581
commit f975230f14
2 changed files with 17 additions and 5 deletions
+15 -5
View File
@@ -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
+2
View File
@@ -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.
<img src="https://papermc.io/assets/misc/namespace-oss-badge.svg?project=velocity" alt="CI powered by namespace badge" />