mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Add native graalvm build to release
This commit is contained in:
parent
47b6fe7dbe
commit
e4a4788d5e
3 changed files with 21 additions and 4 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -38,10 +38,11 @@ jobs:
|
||||||
version: 'latest'
|
version: 'latest'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
components: 'native-image'
|
components: 'native-image'
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew --no-daemon nativeCompile
|
run: ./gradlew --no-daemon nativeCompile
|
||||||
- name: Archive production artifacts
|
- name: Archive production artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: signal-cli-archive-native
|
name: signal-cli-native
|
||||||
path: build/native/nativeCompile/signal-cli
|
path: build/native/nativeCompile/signal-cli
|
||||||
|
|
20
.github/workflows/repackage-native-libs.yml
vendored
20
.github/workflows/repackage-native-libs.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
||||||
|
|
||||||
ci_wf:
|
ci_wf:
|
||||||
uses: AsamK/signal-cli/.github/workflows/ci.yml@master
|
uses: AsamK/signal-cli/.github/workflows/ci.yml@master
|
||||||
# ${{ github.repository }} not accpeted here
|
# ${{ github.repository }} not accepted here
|
||||||
|
|
||||||
|
|
||||||
lib_to_jar:
|
lib_to_jar:
|
||||||
|
@ -31,7 +31,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
#echo ${GITHUB_REF#refs/tag/}
|
#echo ${GITHUB_REF#refs/tag/}
|
||||||
tree .
|
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/')
|
ver=$(ls ./*.tar.gz | xargs basename | sed -E 's/signal-cli-(.*).tar.gz/\1/')
|
||||||
echo $ver
|
echo $ver
|
||||||
echo "::set-output name=signal_cli_version::${ver}"
|
echo "::set-output name=signal_cli_version::${ver}"
|
||||||
|
@ -57,6 +57,12 @@ jobs:
|
||||||
done
|
done
|
||||||
tree .
|
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
|
- name: Replace Windows lib
|
||||||
env:
|
env:
|
||||||
SIGNAL_CLI_VER: ${{ steps.cli_ver.outputs.signal_cli_version }}
|
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_name: signal-cli-${{ steps.cli_ver.outputs.signal_cli_version }}-Linux.tar.gz
|
||||||
asset_content_type: application/x-compressed-tar # .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
|
- name: Upload windows archive
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -3,7 +3,7 @@ plugins {
|
||||||
application
|
application
|
||||||
eclipse
|
eclipse
|
||||||
`check-lib-versions`
|
`check-lib-versions`
|
||||||
id("org.graalvm.buildtools.native") version "0.9.15"
|
id("org.graalvm.buildtools.native") version "0.9.16"
|
||||||
}
|
}
|
||||||
|
|
||||||
version = "0.11.3"
|
version = "0.11.3"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue