chore: Add gitea runner
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user