52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
name: Build & Test Desktop
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
tags: ["v*"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: "21"
|
|
- run: chmod +x ./gradlew
|
|
- run: ./gradlew --no-daemon jvmTest
|
|
|
|
build-jar:
|
|
needs: test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: "21"
|
|
- run: chmod +x ./gradlew
|
|
- run: ./gradlew --no-daemon packageUberJarForCurrentOS # Linux jar (plugin task, always present)
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: adbkey-linux-jar
|
|
path: "**/build/compose/jars/*.jar"
|
|
if-no-files-found: error
|
|
|
|
build-dmg:
|
|
needs: test
|
|
runs-on: macos
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: "21"
|
|
- run: chmod +x ./gradlew
|
|
- run: ./gradlew --no-daemon packageDistributionForCurrentOS # macOS .dmg
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: adbkey-macos-dmg
|
|
path: "**/build/compose/binaries/main/dmg/*.dmg"
|
|
if-no-files-found: error |