chore: Add gitea runner

This commit is contained in:
2026-06-13 10:11:11 +00:00
parent 743eb3dddb
commit d28fe1705f
+38
View File
@@ -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