Skip to content

Commit d44fb48

Browse files
committed
use env var
1 parent a14be20 commit d44fb48

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/android.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Android
22

33
on: [push, pull_request]
44

5+
env:
6+
openssl: 3.2.1
7+
58
jobs:
69
android:
710
runs-on: ubuntu-latest
@@ -13,14 +16,14 @@ jobs:
1316
id: openssl
1417
with:
1518
path: openssl
16-
key: ${{ runner.os }}-android-openssl-3.2.1
19+
key: ${{ runner.os }}-android-openssl-$openssl
1720

1821
- name: "build openssl"
1922
if: steps.openssl.outputs.cache-hit != 'true'
2023
run: |
21-
wget -q https://www.openssl.org/source/openssl-3.2.1.tar.gz
22-
tar -xzf openssl-3.2.0.tar.gz
23-
mv openssl-3.2.0 openssl
24+
wget -q https://www.openssl.org/source/openssl-$openssl.tar.gz
25+
tar -xzf openssl-$openssl.tar.gz
26+
mv openssl-$openssl openssl
2427
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 ..
2528
2629
- name: build

0 commit comments

Comments
 (0)