Skip to content

Commit

Permalink
feature: add upload binaries workflow
Browse files Browse the repository at this point in the history
Signed-off-by: jonathan zollinger <jonathan.zollinger@outlook.com>
  • Loading branch information
Jonathan-Zollinger committed Jan 3, 2024
1 parent 9467267 commit 4ef49c0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/upload-release-binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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/upload-artifact@v4.0.0
with:
name: microfetch-${{ matrix.os }}
path: '/home/runner/work/microfetch/microfetch/build/native/nativeCompile/microfetch'${{ matrix.filetype }}

0 comments on commit 4ef49c0

Please sign in to comment.