Skip to content

Commit

Permalink
Merge pull request #40 from anarkylabs/use-cargo-ndk
Browse files Browse the repository at this point in the history
Fix(ci): switch to cargo ndk and use Android Platform 31
  • Loading branch information
jxs authored Nov 12, 2024
2 parents e4fa95c + 725faa3 commit eadf211
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@ jobs:
rust-version: ${{ matrix.toolchain.rust }}
targets: ${{ matrix.platform.target }}

- name: Install cargo-apk
- name: Install cargo-ndk
if: contains(matrix.platform.target, 'android')
run: cargo install cargo-apk
run: cargo install cargo-ndk

- name: Build
if: contains(matrix.platform.target, 'android') == false
run: cargo build --workspace --all-features --target ${{ matrix.platform.target }}

- name: Build android
if: contains(matrix.platform.target, 'android')
run: cargo apk build --target ${{ matrix.platform.target }} --all-features
run: cargo ndk --target ${{ matrix.platform.target }} --platform 31 -- build --all-features

- name: Rust tests
if: matrix.platform.cross == false
Expand Down

0 comments on commit eadf211

Please sign in to comment.