Skip to content

fix: make it works

fix: make it works #15

Workflow file for this run

name: Android
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
instrumented_tests:
name: Run Scripts
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- uses: nttld/setup-ndk@v1
with:
ndk-version: r26b
local-cache: true
add-to-path: true
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: checkout
uses: actions/checkout@v2
- name: rust toolchain setup
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: install cargo ndk
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-ndk
- name: setup build targets
run: rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android aarch64-apple-ios x86_64-apple-ios
- name: list
run: ls ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/darwin-x86_64/bin/
- name: build android
run: ./gradlew cargoBuild
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
TOOLCHAIN: ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/darwin-x86_64
RANLIB: ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ranlib
- name: build iso
run: cargo build --target=aarch64-apple-ios && cargo build --target=x86_64-apple-ios