Skip to content

🐷

🐷 #39

Workflow file for this run

name: ci-build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup ndk
run: |
ndk_url=$(wget -qO- https://github.com/android/ndk/releases/latest | grep -e 'https://dl.google.com/android/repository/android-ndk-.*-linux.zip' | sed -n 's/.*<a href="\([^"]*\)".*/\1/p')
wget -O ndk.zip $ndk_url -nv
mkdir ndk_temp
unzip ndk.zip -d ndk_temp 2>&1 > /dev/null
mv ./ndk_temp/*/* ./ndk_temp
- run: |
rustup default nightly
rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android
- run: cargo install cargo-ndk
- run: |
sudo apt update
sudo apt install gcc-multilib git-lfs
- run: git lfs pull
- name: build
run: |
export ANDROID_NDK_HOME=$(realpath ./ndk_temp)
chmod +x ./build.sh
./build.sh --release