Skip to content

Commit

Permalink
(chore): Add CI step to build for Android
Browse files Browse the repository at this point in the history
Also update strategy to fail-fast to allow running other jobs in matrix.

Signed-off-by: Mariappan Ramasamy <[email protected]>
  • Loading branch information
nappairam committed Aug 6, 2024
1 parent e0f59c0 commit 1e2c000
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
Expand Down Expand Up @@ -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 :

0 comments on commit 1e2c000

Please sign in to comment.