Skip to content

build: fix workflow

build: fix workflow #2

Workflow file for this run

name: Build and Release Tahini Binaries
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up GraalVM
uses: DeLaGuardo/setup-graalvm@v1
with:
version: 'latest'
java-version: '21'
- name: Build jar with Gradle
run: |
cd tahini
./gradlew build
- name: Compile native image
run: |
cd tahini
native-image -jar app/build/libs/tahini.jar tahini
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: tahini-${{ matrix.os }}
path: tahini*
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
tahini-ubuntu-latest
tahini-macos-latest
tahini-windows-latest.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}