Build LibAFL Android in CI (#275)

* trying to fix android ci

* fix?

* still trying to fix android ci

* we don't produce a cdylib, so let's not output the target
This commit is contained in:
Dominik Maier 2021-08-24 11:39:57 +02:00 committed by GitHub
parent 2301335bf7
commit 7c086f1877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,14 +174,20 @@ jobs:
profile: minimal profile: minimal
toolchain: stable toolchain: stable
- uses: Swatinem/rust-cache@v1 - uses: Swatinem/rust-cache@v1
- uses: nttld/setup-ndk@v1
with:
ndk-version: r21e
- name: install ios - name: install ios
run: rustup target add aarch64-apple-ios run: rustup target add aarch64-apple-ios
#- name: install android - name: install android
# run: rustup target add aarch64-linux-android run: rustup target add aarch64-linux-android
- name: install cargo ndk
run: cargo install cargo-ndk
- name: Build iOS - name: Build iOS
run: cargo build --target aarch64-apple-ios run: cargo build --target aarch64-apple-ios
#- name: Build Android - name: Build Android
# run: cargo build --target aarch64-linux-android run: cargo ndk -t arm64-v8a build --release
#run: cargo build --target aarch64-linux-android
# TODO: Figure out how to properly build stuff with clang # TODO: Figure out how to properly build stuff with clang
#- name: Add clang path to $PATH env #- name: Add clang path to $PATH env
# if: runner.os == 'Windows' # if: runner.os == 'Windows'