-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 1.37 KB
/
upload-release-binaries.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Publish New Release
on:
workflow_dispatch:
release:
types: [released]
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
include:
- os: macos-latest
file: /Users/runner/work/microfetch/microfetch/build/native/nativeCompile/microfetch
- os: ubuntu-latest
file: /home/runner/work/microfetch/microfetch/build/native/nativeCompile/microfetch
- os: windows-latest
file: D:\a\microfetch\microfetch\build\native\nativeCompile\microfetch.exe
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref_name }} and your repository is ${{ github.repository }}."
- 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: ${{ matrix.file }}