-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 1.43 KB
/
build.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
39
40
41
42
43
44
45
46
47
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle
name: Gradle Package
on:
push:
tags: 'v*.*.*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: graalvm-native-image-toolchain
# You may pin to the exact commit or the version.
# uses: helpermethod/graalvm-native-image-toolchain@0d0bba60da6141a38feab36769e51b4abbac1082
uses: helpermethod/[email protected]
with:
# The GraalVM version
graalvm-version: 21.3.0
# The Java version
java-version: 11
- name: Build with Gradle
run: ./gradlew nativeCompile
- uses: actions/upload-artifact@master
with:
name: executable
path: build/native/nativeCompile/gh-echo*
publish:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@master
with:
name: executable
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ github.ref_name }}
prerelease: false
title: ${{ github.ref_name }}
files: 'gh-echo*'