From d28fe1705f4e343d2d9a40ae59d1cf00d176693f Mon Sep 17 00:00:00 2001 From: Eric Ampire Date: Sat, 13 Jun 2026 10:11:11 +0000 Subject: [PATCH] chore: Add gitea runner --- .gitea/workflows/deployment.yaml | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .gitea/workflows/deployment.yaml diff --git a/.gitea/workflows/deployment.yaml b/.gitea/workflows/deployment.yaml new file mode 100644 index 0000000..412aa0e --- /dev/null +++ b/.gitea/workflows/deployment.yaml @@ -0,0 +1,38 @@ +name: Build & Test Desktop JAR + +on: + push: + branches: [main] + tags: ["v*"] + workflow_dispatch: + +jobs: + build-jar: + runs-on: ubuntu-latest # your Linux k3s runner + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: "21" + + - name: Make gradlew executable + run: chmod +x ./gradlew + + # Runs commonTest + jvmTest. If a test fails, the job stops here and no jar is built. + - name: Run tests + run: ./gradlew --no-daemon jvmTest + + # Cross-platform uber jar (see the build.gradle.kts note below for macOS support) + - name: Build uber jar + run: ./gradlew --no-daemon packageUberJarForCurrentOS + + - name: Upload jar artifact + uses: actions/upload-artifact@v3 + with: + name: adbkey-uber-jar + path: "**/build/compose/jars/*.jar" + if-no-files-found: error \ No newline at end of file