Package #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package | |
on: workflow_dispatch | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-2022, ubuntu-20.04, macos-13] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up JDK 22.0.2 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '22.0.2' | |
- name: Show Build Versions | |
run: ./gradlew -v | |
- name: Build with Gradle | |
run: ./gradlew jpackage | |
- name: Package zip distribution | |
if: ${{ runner.os == 'Windows' || runner.os == 'macOS' }} | |
run: ./gradlew packageZipDistribution | |
- name: Package tar distribution | |
if: ${{ runner.os == 'Linux' }} | |
run: ./gradlew packageTarDistribution | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Lark Build - ${{ runner.os }} | |
path: | | |
build/jpackage/* | |
!build/jpackage/Lark/ |