Skip to content

Commit

Permalink
Add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
sne11ius committed Mar 6, 2024
1 parent b8d7b2c commit b4cc3bf
Showing 1 changed file with 19 additions and 29 deletions.
48 changes: 19 additions & 29 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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*

0 comments on commit b4cc3bf

Please sign in to comment.