Add native graalvm build to release

This commit is contained in:
AsamK 2022-10-19 20:09:03 +02:00
parent 47b6fe7dbe
commit e4a4788d5e
3 changed files with 21 additions and 4 deletions

View file

@ -10,7 +10,7 @@ jobs:
ci_wf:
uses: AsamK/signal-cli/.github/workflows/ci.yml@master
# ${{ github.repository }} not accpeted here
# ${{ github.repository }} not accepted here
lib_to_jar:
@ -31,7 +31,7 @@ jobs:
run: |
#echo ${GITHUB_REF#refs/tag/}
tree .
mv ./$(ls */ -d | tail -n1)/*.tar.gz .
mv ./$(ls signal-cli-archive-*/ -d | tail -n1)/*.tar.gz .
ver=$(ls ./*.tar.gz | xargs basename | sed -E 's/signal-cli-(.*).tar.gz/\1/')
echo $ver
echo "::set-output name=signal_cli_version::${ver}"
@ -57,6 +57,12 @@ jobs:
done
tree .
- name: Compress native app
env:
SIGNAL_CLI_VER: ${{ steps.cli_ver.outputs.signal_cli_version }}
run: |
tar -czf signal-cli-${SIGNAL_CLI_VER}-Linux-native.tar.gz -C signal-cli-native signal-cli
- name: Replace Windows lib
env:
SIGNAL_CLI_VER: ${{ steps.cli_ver.outputs.signal_cli_version }}
@ -96,6 +102,16 @@ jobs:
asset_name: signal-cli-${{ steps.cli_ver.outputs.signal_cli_version }}-Linux.tar.gz
asset_content_type: application/x-compressed-tar # .tar.gz
- name: Upload Linux native archive
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: signal-cli-${{ steps.cli_ver.outputs.signal_cli_version }}-Linux-native.tar.gz
asset_name: signal-cli-${{ steps.cli_ver.outputs.signal_cli_version }}-Linux-native.tar.gz
asset_content_type: application/x-compressed-tar # .tar.gz
- name: Upload windows archive
uses: actions/upload-release-asset@v1
env: