deterministic builds on linux and windows

This commit is contained in:
Craig Raw 2021-03-20 14:13:10 +02:00
parent ff43db0842
commit 28ee16279c
2 changed files with 22 additions and 1 deletions

View file

@ -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/

View file

@ -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"
}