Skip to content

Commit

Permalink
use env var
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Feb 11, 2024
1 parent a14be20 commit d44fb48
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Android

on: [push, pull_request]

env:
openssl: 3.2.1

jobs:
android:
runs-on: ubuntu-latest
Expand All @@ -13,14 +16,14 @@ jobs:
id: openssl
with:
path: openssl
key: ${{ runner.os }}-android-openssl-3.2.1
key: ${{ runner.os }}-android-openssl-$openssl

- name: "build openssl"
if: steps.openssl.outputs.cache-hit != 'true'
run: |
wget -q https://www.openssl.org/source/openssl-3.2.1.tar.gz
tar -xzf openssl-3.2.0.tar.gz
mv openssl-3.2.0 openssl
wget -q https://www.openssl.org/source/openssl-$openssl.tar.gz
tar -xzf openssl-$openssl.tar.gz
mv openssl-$openssl openssl
cd openssl && ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME PATH=$ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH ./Configure android-arm64 no-shared no-tests -U__ANDROID_API__ -D__ANDROID_API__=21 && PATH=$ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH make build_libs && cd ..
- name: build
Expand Down

0 comments on commit d44fb48

Please sign in to comment.