From 1e2c000858ef965a38042512cded4f63c5a98542 Mon Sep 17 00:00:00 2001 From: Mariappan Ramasamy <1221719+nappairam@users.noreply.github.com> Date: Sun, 4 Aug 2024 02:17:18 +0800 Subject: [PATCH] (chore): Add CI step to build for Android Also update strategy to fail-fast to allow running other jobs in matrix. Signed-off-by: Mariappan Ramasamy <1221719+nappairam@users.noreply.github.com> --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7bac58a378..a04f3d6089 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,7 @@ jobs: ci: runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: os: - macos-latest @@ -83,4 +84,14 @@ jobs: - name: Cargo clippy run: cargo clippy + - name: Install cargo ndk and rust compiler for android targets + run: | + cargo install --locked cargo-ndk + rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi i686-linux-android + + - name: Cargo build android + if: ${{ ! startsWith(matrix.os, 'windows') }} + run: | + cargo ndk --bindgen -t x86_64 -t x86 -t armeabi-v7a -t arm64-v8a -o ./jniLibs rustc --crate-type cdylib -p oqs --no-default-features --features kems,sigs,std + # vim: set ft=yaml ts=2 sw=2 tw=0 et :