Skip to content

Commit

Permalink
try to install openssl for android-armv7
Browse files Browse the repository at this point in the history
  • Loading branch information
shamardy committed Sep 3, 2024
1 parent 18fb2ca commit 11e56eb
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -569,11 +569,20 @@ jobs:
- name: Install build deps
uses: ./.github/actions/deps-install
with:
deps: ('protoc', 'git-submodules', 'openssl')
deps: ('protoc', 'git-submodules')

- name: Setup NDK
run: ./scripts/ci/android-ndk.sh x86 23

- name: Install OpenSSL for Android
run: |
sudo apt-get update -y
sudo apt-get install -y pkg-config libssl-dev
export OPENSSL_DIR=$(pkg-config --variable=libdir openssl)
export OPENSSL_INCLUDE_DIR=$(pkg-config --variable=includedir openssl)
echo "OPENSSL_DIR=$OPENSSL_DIR" >> $GITHUB_ENV
echo "OPENSSL_INCLUDE_DIR=$OPENSSL_INCLUDE_DIR" >> $GITHUB_ENV
- name: Calculate commit hash for PR commit
if: github.event_name == 'pull_request'
run: echo "COMMIT_HASH=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV
Expand All @@ -591,6 +600,9 @@ jobs:
echo $COMMIT_HASH > ./MM_VERSION
export PATH=$PATH:/android-ndk/bin
export PKG_CONFIG_ALLOW_CROSS=1
export PKG_CONFIG_SYSROOT_DIR=/path/to/sysroot
export PKG_CONFIG_PATH=/path/to/pkgconfig
CC_armv7_linux_androideabi=armv7a-linux-androideabi21-clang CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER=armv7a-linux-androideabi21-clang cargo rustc --features "enable-sia" --target=armv7-linux-androideabi --lib --release --crate-type=staticlib --package mm2_bin_lib
- name: Compress mm2 build output
Expand Down

0 comments on commit 11e56eb

Please sign in to comment.