-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.19 KB
/
build-artifact.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
name: Build Native Image
on:
push:
tags:
- '*.*.*'
jobs:
build-native-image:
name: Building executable artifact for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm'
components: "native-image"
- name: Grant Execute Permissions for Gradlew
run: chmod +x gradlew
- name: Extract application version
run: echo "::set-output name=version::$(./gradlew properties | grep 'version:' | awk '{print $2}')"
id: version
- name: Build Native Image
run: ./gradlew nativeCompile
- name: Copy artifact
run: cp ./build/native/nativeCompile/qmk-display ./qmk-display-${{ matrix.os }}-${{ steps.version.outputs.version }}
- name: Release
uses: softprops/action-gh-release@v2
with:
draft: true
name: ${{ steps.version.outputs.version }}
files: ./qmk-display-${{ matrix.os }}-${{ steps.version.outputs.version }}