mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-23 20:36:44 +00:00
deterministic builds on linux and windows
This commit is contained in:
parent
ff43db0842
commit
28ee16279c
2 changed files with 22 additions and 1 deletions
10
.github/workflows/package.yaml
vendored
10
.github/workflows/package.yaml
vendored
|
@ -32,8 +32,16 @@ jobs:
|
|||
restore-keys: ${{ runner.os }}-gradle
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew jpackage
|
||||
- name: Package zip distribution
|
||||
if: ${{ runner.os == 'Windows' }}
|
||||
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/*
|
||||
path: |
|
||||
build/jpackage/*
|
||||
!build/jpackage/Sparrow/
|
13
build.gradle
13
build.gradle
|
@ -181,3 +181,16 @@ jlink {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
task packageZipDistribution(type: Zip) {
|
||||
archiveFileName = "Sparrow-${sparrowVersion}.zip"
|
||||
destinationDirectory = file("$buildDir/jpackage")
|
||||
from "$buildDir/jpackage/Sparrow"
|
||||
}
|
||||
|
||||
task packageTarDistribution(type: Tar) {
|
||||
archiveFileName = "sparrow-${sparrowVersion}.tar.gz"
|
||||
destinationDirectory = file("$buildDir/jpackage")
|
||||
compression = Compression.GZIP
|
||||
from "$buildDir/jpackage/Sparrow"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue