Skip to content

Commit

Permalink
try android build
Browse files Browse the repository at this point in the history
  • Loading branch information
flaribbit committed Oct 6, 2023
1 parent 06f9b61 commit d401d3b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,24 @@ jobs:
with:
name: win64
path: target/release/imgfind.exe

build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: cache vcpkg
uses: actions/cache@v3
with:
key: vcpkg-android
path: ${{ env.VCPKG_INSTALLATION_ROOT }}/installed
- name: setup vcpkg
run: vcpkg install libheif:arm64-android
- name: setup cargo-ndk
run: |
cargo install cargo-ndk
rustup target add aarch64-linux-android armv7-linux-androideabi
- name: Build
run: |
export VCPKG_ROOT=$VCPKG_INSTALLATION_ROOT
export NDK_HOME=$ANDROID_NDK_PATH
cargo ndk --platform 21 --target aarch64-linux-android build --release --all-features

0 comments on commit d401d3b

Please sign in to comment.