mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36:45 +00:00
42 lines
No EOL
1.2 KiB
YAML
42 lines
No EOL
1.2 KiB
YAML
name: Package
|
|
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
- name: Set up JDK 18.0.1
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '18.0.1'
|
|
- name: Show Build Versions
|
|
run: ./gradlew -v
|
|
- name: Cache Gradle packages
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ~/.gradle/caches
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
|
restore-keys: ${{ runner.os }}-gradle
|
|
- 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@v2
|
|
with:
|
|
name: Sparrow Build - ${{ runner.os }}
|
|
path: |
|
|
build/jpackage/*
|
|
!build/jpackage/Sparrow/ |