-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.26 KB
/
build-natives.yaml
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
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
platform:
- os: macos-14
extension: dylib
target: x86_64-apple-darwin
- os: macos-14
extension: dylib
target: aarch64-apple-darwin
- os: ubuntu-24.04
extension: so
target: x86_64-unknown-linux-gnu
- os: ubuntu-24.04
extension: so
target: aarch64-unknown-linux-gnu
- os: windows-2022
extension: dll
target: x86_64-pc-windows-msvc
- os: windows-2022
extension: dll
target: aarch64-pc-windows-msvc
runs-on: ${{ matrix.platform.os }}
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: build
uses: houseabsolute/actions-rust-cross@v0
with:
command: build
args: "--release"
target: ${{ matrix.platform.target }}
- name: capture build artifacts
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: battery-jni-${{ matrix.platform.os }}-${{ matrix.platform.target }}
path: target/${{ matrix.platform.target }}/release/*.${{ matrix.platform.extension }}