-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
113 additions
and
26 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: "Create SHA512 for a file" | ||
description: "Cross-platform helper: creates SHA512" | ||
|
||
inputs: | ||
filepath: | ||
description: "The input file path" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: "Generate SHA512 for Linux" | ||
shell: bash | ||
if: runner.os == 'Linux' | ||
run: sha512sum ${{ inputs.filepath }} > ${{ inputs.filepath }}.sha512 | ||
- name: "Generate SHA512 for Windows" | ||
shell: bash | ||
if: runner.os == 'Windows' | ||
run: certutil -hashfile ${{ inputs.filepath }} SHA512 >> ${{ inputs.filepath }}.sha512 | ||
- name: "Generate SHA512 for macOS" | ||
shell: bash | ||
if: runner.os == 'macOS' | ||
run: openssl dgst -sha512 > ${{ inputs.filepath }}.sha512 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,11 @@ name: "Generate Releases" | |
on: | ||
release: | ||
types: [ published ] | ||
## To test this workflow without creating a release, uncomment the following and add a branch name (making sure "push" | ||
## is at the same indent level as "release": | ||
# push: | ||
# branches: | ||
# - 'branch-name' | ||
# To test this workflow without creating a release, uncomment the following and add a branch name (making sure "push" | ||
# is at the same indent level as "release": | ||
push: | ||
branches: | ||
- 'feature/issue-756_airgap' | ||
|
||
jobs: | ||
release: | ||
|
@@ -50,7 +50,7 @@ jobs: | |
if [ ${{ runner.os }} == 'Windows' ]; then | ||
echo "FILEPATH=build/jpackage/RCTab-1.3.999.exe" >> $GITHUB_OUTPUT | ||
elif [ ${{ runner.os }} == 'Linux' ]; then | ||
echo "FILEPATH=build/jpackage/rctab_1.3.999-1_amd64.deb" >> $GITHUB_OUTPUT | ||
echo "FILEPATH=build/jpackage/rctab_1.3.999_amd64.deb" >> $GITHUB_OUTPUT | ||
else | ||
echo "FILEPATH=build/jpackage/RCTab-1.3.999.dmg" >> $GITHUB_OUTPUT | ||
fi | ||
|
@@ -77,6 +77,39 @@ jobs: | |
intermediate-filepath: build/rcv.zip | ||
final-filepath: ${{ steps.zipfn.outputs.FILEPATH }} | ||
|
||
- name: "Create caches filename" | ||
id: cachefn | ||
shell: bash | ||
run: | | ||
echo "DEPENDENCY_FILEPATH=dependency.${{ runner.os }}.zip" >> $GITHUB_OUTPUT | ||
echo "PLUGIN_FILEPATH=plugin.${{ runner.os }}.zip" >> $GITHUB_OUTPUT | ||
- name: "Create dependency zip" | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: "zip" | ||
command: ./gradlew copyLibs | ||
filename: ${{steps.cachefn.outputs.DEPENDENCY_FILEPATH}} | ||
path: ".dependencycache" | ||
|
||
- name: "Create plugins zip" | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: "zip" | ||
command: ./gradlew assemble | ||
filename: ${{steps.cachefn.outputs.PLUGIN_FILEPATH}} | ||
path: "~/.gradle/caches" | ||
|
||
- name: "Generate SHA512 for dependency cache" | ||
uses: ./.github/actions/sha | ||
with: | ||
filepath: ${{steps.cachefn.outputs.DEPENDENCY_FILEPATH}} | ||
|
||
- name: "Generate SHA512 for plugins cache" | ||
uses: ./.github/actions/sha | ||
with: | ||
filepath: ${{steps.cachefn.outputs.PLUGIN_FILEPATH}} | ||
|
||
- name: "Prepare keychain" | ||
if: matrix.os == 'macOS-latest' | ||
env: | ||
|
@@ -132,6 +165,10 @@ jobs: | |
${{ github.workspace }}/${{ steps.zipfn.outputs.FILEPATH }}.sha512 | ||
${{ github.workspace }}/${{ steps.exefn.outputs.FILEPATH }} | ||
${{ github.workspace }}/${{ steps.exefn.outputs.FILEPATH }}.sha512 | ||
${{ github.workspace }}/dependencycache.zip | ||
${{ github.workspace }}/dependencycache.zip.sha512 | ||
${{ github.workspace }}/plugincache.zip | ||
${{ github.workspace }}/plugincache.zip.sha512 | ||
retention-days: 90 | ||
|
||
- name: "Upload binaries to release" | ||
|
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