-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (27 loc) · 893 Bytes
/
build.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
name: Build
on:
push:
jobs:
# Build job. Builds app for Android with Buildozer
build-android:
name: Build for Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: nttld/setup-ndk@v1
with:
ndk-version: r25c
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: |
sudo apt update
cargo install cargo-ndk
rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android
cd ${{ github.workspace }}
cargo ndk --platform 21 --target aarch64-linux-android build -o bin
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: package
path: bin/*.so
# path: ${{ steps.buildozer.outputs.filename }}