-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (39 loc) · 1.18 KB
/
build.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
42
43
44
45
46
47
48
49
name: Build
on:
push:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Python setuptools
run: brew install python-setuptools
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 20
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install dependencies
run: |
npm install
- name: Get rust ready
run: |
rustup target install x86_64-linux-android
rustup target install armv7-linux-androideabi
rustup target install aarch64-linux-android
rustup target install i686-linux-android
rustup target install x86_64-apple-ios
rustup target install aarch64-apple-ios
cargo build
- name: Build ironfish-native-module
run: |
npx nx cargo-ios ironfish-native-module -- --target='ios'
npx nx cargo-android ironfish-native-module
- name: Verify prebuild success
run: |
npx nx prebuild mobile-app