feature: add upload binaries workflow #2
Workflow file for this run
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
name: Graalvm test and build with Gradle | ||
on: | ||
release: | ||
branches: [ main ] | ||
permissions: | ||
contents: read | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
include: | ||
- os: macos-latest | ||
- os: ubuntu-latest | ||
- os: windows-latest | ||
filetype: 'exe' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 17 | ||
uses: graalvm/setup-graalvm@v1 | ||
with: | ||
java-version: '17' | ||
distribution: 'graalvm-community' | ||
- name: build for ${{ matrix.os }} os | ||
run: ./gradlew nativeCompile | ||
- name: upload binaries | ||
uses: actions/[email protected] | ||
with: | ||
name: microfetch-${{ matrix.os }} | ||
path: '/home/runner/work/microfetch/microfetch/build/native/nativeCompile/microfetch'${{ matrix.filetype }} |