chore: Update. plugin for linux
This commit is contained in:
@@ -6,7 +6,6 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# ---- Tests run once on Linux; both build jobs depend on this ----
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -16,13 +15,11 @@ jobs:
|
|||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: "21"
|
java-version: "21"
|
||||||
- run: chmod +x ./gradlew
|
- run: chmod +x ./gradlew
|
||||||
- name: Run tests
|
- run: ./gradlew --no-daemon jvmTest
|
||||||
run: ./gradlew --no-daemon jvmTest
|
|
||||||
|
|
||||||
# ---- Portable fat jar (Linux + macOS arm64 Skiko bundled) ----
|
|
||||||
build-jar:
|
build-jar:
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: ubuntu-latest # your k3s runners
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
@@ -30,18 +27,16 @@ jobs:
|
|||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: "21"
|
java-version: "21"
|
||||||
- run: chmod +x ./gradlew
|
- run: chmod +x ./gradlew
|
||||||
- name: Build fat jar
|
- run: ./gradlew --no-daemon packageUberJarForCurrentOS # Linux jar (plugin task, always present)
|
||||||
run: ./gradlew --no-daemon desktopFatJar
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: adbkey-uber-jar
|
name: adbkey-linux-jar
|
||||||
path: "**/build/libs/adbkey-all.jar"
|
path: "**/build/compose/jars/*.jar"
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
# ---- Native DMG built ON macOS (jpackage needs the target OS) ----
|
|
||||||
build-dmg:
|
build-dmg:
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: macos # match the label of YOUR registered macOS runner
|
runs-on: macos
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
@@ -49,8 +44,7 @@ jobs:
|
|||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: "21"
|
java-version: "21"
|
||||||
- run: chmod +x ./gradlew
|
- run: chmod +x ./gradlew
|
||||||
- name: Build DMG
|
- run: ./gradlew --no-daemon packageDistributionForCurrentOS # macOS .dmg
|
||||||
run: ./gradlew --no-daemon packageDistributionForCurrentOS
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: adbkey-macos-dmg
|
name: adbkey-macos-dmg
|
||||||
|
|||||||
Reference in New Issue
Block a user