-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.15 KB
/
native_binary_release.yml
File metadata and controls
50 lines (40 loc) · 1.15 KB
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
48
49
50
name: Release Native Binaries
# Currently no longer supporting windows. Can look into it if we get requests
# Work around is to use a VM like VirtualBox and Linux
on:
release:
branches:
- main
types: [ published ]
jobs:
build-native:
strategy:
matrix:
include:
- os: ubuntu-24.04
label: linux-x64
- os: macos-14
label: macos-arm64
- os: macos-15-intel
label: macos-x64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
distribution: 'graalvm'
components: 'native-image'
- name: Build native image
run: ./gradlew nativeCompile
- name: Rename binary with release label
run: |
mkdir -p release/
cp build/native/nativeCompile/kb-sdk release/kb-sdk-${{ matrix.label }}
- name: Upload release asset
uses: softprops/action-gh-release@v2
with:
files: |
release/kb-sdk-${{ matrix.label }}
fail_on_unmatched_files: true