-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI Fix: Native image link issue for Linux binary (#60)
* chore: Fix native image issue * Revert "chore: Fix native image issue" This reverts commit 107ecb1. * chore: To fix netty linking issue * Revert "chore: To fix netty linking issue" This reverts commit 45cfefe. * chore: To fix graalvm issue * chore: Get correct jre path for non docker * chore: Mostly static image test * chore: Mostly static image test * chore: Mostly static image test * chore: Mostly static image test * chore: Mostly static image test * chore: Mostly static image test * chore: Mostly static image test * chore: Mostly static image test * chore: Mostly static image test * chore: Mostly static image test * chore: Mostly static image test * chore: Mostly static image test * chore: Bump version. Clean release action file
- Loading branch information
Showing
6 changed files
with
72 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Build and Release Yaci CLI Zip | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'rel-dev-*' | ||
|
||
jobs: | ||
buildAndPush: | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-20.04", "macos-14"] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
FORCE_COLOR: 1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: graalvm/setup-graalvm@v1 | ||
with: | ||
java-version: '21' | ||
distribution: 'graalvm' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
version: '21.0.2' | ||
native-image-job-reports: 'true' | ||
- name: Get Tag from version file | ||
run: | | ||
TAG=$(grep "tag=" config/version | cut -d'=' -f2) | ||
echo "TAG=${TAG}" >> $GITHUB_ENV | ||
- name: Grant execute permission for gradlew | ||
working-directory: applications/cli | ||
run: chmod +x gradlew | ||
- name: Copy CI specific native-image properties | ||
working-directory: applications/cli | ||
if: runner.os == 'Linux' | ||
run: | | ||
echo "os_prefix=linux" >> $GITHUB_ENV | ||
- name: MacOS specific env | ||
if: runner.os == 'macOS' | ||
run: | | ||
echo "os_prefix=macos" >> $GITHUB_ENV | ||
- name: Build with Gradle | ||
working-directory: applications/cli | ||
run: ./gradlew --no-daemon -i -Pversion=${{ env.TAG }} clean build nativeCompile cliZip | ||
- name: Copy artifacts | ||
working-directory: applications/cli | ||
run: mv build/yaci-cli-${{ env.TAG }}.zip build/yaci-cli-${{ env.TAG }}-${{ env.os_prefix }}-${{ runner.arch }}.zip | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: yaci-cli-${{ env.TAG }}-${{ env.os_prefix }}-${{ runner.arch }} | ||
path: ./applications/cli/build/yaci-cli-${{ env.TAG }}-${{ env.os_prefix }}-${{ runner.arch }}.zip |
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
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
2 changes: 1 addition & 1 deletion
2
applications/cli/src/main/resources/META-INF/native-image/yaci-cli/native-image.properties
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
tag=0.9.0-beta | ||
tag=0.9.1-beta | ||
revision= |