Skip to content

reflect usage updates #21

reflect usage updates

reflect usage updates #21

Workflow file for this run

name: release
on:
workflow_dispatch:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@v6
- uses: graalvm/setup-graalvm@v1
with:
distribution: liberica #graalvm-community
java-version: 25
cache: gradle
native-image-job-reports: true
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: ./gradlew -v
- run: ./gradlew nativeCompile
- uses: actions/upload-artifact@v7
if: matrix.os == 'ubuntu-latest'
with:
name: jar
path: _tui/build/jar/
- uses: actions/upload-artifact@v7
with:
name: ${{ matrix.os }}
path: _tui/build/native/nativeCompile/
create:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- uses: actions/download-artifact@v8
with:
path: artifacts
merge-multiple: true
- run: ls -R artifacts/
- run: chmod +x artifacts/*linux* # upx breaks windows!?
- run: find artifacts/ -type f -executable -execdir upx -o "{}-upx" "{}" \;
- run: file artifacts/*
- run: |
gh release create "${{ github.ref_name }}" \
--title "${{ github.ref_name }}" \
--draft \
artifacts/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}