-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 changed file
with
19 additions
and
29 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 |
---|---|---|
|
@@ -36,34 +36,24 @@ jobs: | |
# strip: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# - uses: graalvm/setup-graalvm@v1 | ||
# with: | ||
# java-version: '21' | ||
# distribution: 'graalvm' | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
# native-image-job-reports: 'true' | ||
# - name: Build | ||
# run: | | ||
# gradle build | ||
# native-image --no-fallback -jar build/libs/x2h.jar | ||
# - name: Compress binary | ||
# uses: svenstaro/upx-action@v2 | ||
# with: | ||
# file: ${{ matrix.file }} | ||
# args: ${{ matrix.args }} | ||
# strip: ${{ matrix.strip }} | ||
- uses: graalvm/setup-graalvm@v1 | ||
with: | ||
java-version: '21' | ||
distribution: 'graalvm' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
native-image-job-reports: 'true' | ||
- name: Build | ||
run: | | ||
gradle build | ||
native-image --no-fallback -jar build/libs/x2h.jar | ||
- name: Compress binary | ||
uses: svenstaro/upx-action@v2 | ||
with: | ||
file: ${{ matrix.file }} | ||
args: ${{ matrix.args }} | ||
strip: ${{ matrix.strip }} | ||
- name: Upload binary | ||
uses: skx/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
releaseId: ${{ needs.create_release.outputs.id }} | ||
args: 'x2h*' | ||
|
||
|
||
# - name: Upload binary | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: x2h-${{ matrix.os }} | ||
# path: x2h* | ||
#${{ fromJSON(steps.create-release.outputs.id) }} | ||
tag_name: ${{ needs.create_release.outputs.tag-name }} | ||
files: x2h* |