-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.11 KB
/
native_binary_build.yml
File metadata and controls
52 lines (43 loc) · 1.11 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
51
52
name: Build 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:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
push:
# run workflow when merging to main or develop
branches:
- main
- master
- develop
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: Upload artifact
uses: actions/upload-artifact@v4
with:
name: kb-sdk-${{ matrix.label }}
path: build/native/nativeCompile/kb-sdk