From 7c086f187768aea04934468d63763696cb7663ef Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Tue, 24 Aug 2021 11:39:57 +0200 Subject: [PATCH] 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 --- .github/workflows/build_and_test.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 288d26d01f..ebe51d77ff 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -174,14 +174,20 @@ jobs: profile: minimal toolchain: stable - uses: Swatinem/rust-cache@v1 + - uses: nttld/setup-ndk@v1 + with: + ndk-version: r21e - name: install ios run: rustup target add aarch64-apple-ios - #- name: install android - # run: rustup target add aarch64-linux-android + - name: install android + run: rustup target add aarch64-linux-android + - name: install cargo ndk + run: cargo install cargo-ndk - name: Build iOS run: cargo build --target aarch64-apple-ios - #- name: Build Android - # run: cargo build --target aarch64-linux-android + - name: Build 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 #- name: Add clang path to $PATH env # if: runner.os == 'Windows'