|
9 | 9 | android: |
10 | 10 | runs-on: ubuntu-latest |
11 | 11 | steps: |
| 12 | + - run: echo "TOOLCHAIN=$ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64" >> $GITHUB_ENV |
| 13 | + - run: ls $TOOLCHAIN/lib64/clang | xargs -0 printf "CLANG_VERSION=%s" >> $GITHUB_ENV |
| 14 | + - run: echo "CLANG=$TOOLCHAIN/lib64/clang/$CLANG_VERSION" >> $GITHUB_ENV |
| 15 | + |
| 16 | + - run: echo $ANDROID_NDK_LATEST_HOME |
| 17 | + - run: echo $CLANG_VERSION |
| 18 | + |
12 | 19 | - run: mkdir Android.ndk |
13 | | - - run: ls $ANDROID_NDK_LATEST_HOME |
14 | | - - run: cp -r $ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr Android.ndk/ |
15 | | - - run: cp -r $ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/12.0.8/lib/linux/aarch64/* Android.ndk/usr/lib/aarch64-linux-android/ |
16 | | - - run: cp -r $ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/12.0.8/lib/linux/arm/* Android.ndk/usr/lib/arm-linux-androideabi/ |
17 | | - - run: cp -r $ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/12.0.8/lib/linux/x86_64/* Android.ndk/usr/lib/x86_64-linux-android/ |
18 | | - - run: cp -r $ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/12.0.8/lib/linux/i386/* Android.ndk/usr/lib/i686-linux-android/ |
| 20 | + - run: cp -r $TOOLCHAIN/sysroot/usr Android.ndk/ |
| 21 | + - run: cp -r $CLANG/lib/linux/aarch64/* Android.ndk/usr/lib/aarch64-linux-android/ |
| 22 | + - run: cp -r $CLANG/lib/linux/arm/* Android.ndk/usr/lib/arm-linux-androideabi/ |
| 23 | + - run: cp -r $CLANG/lib/linux/x86_64/* Android.ndk/usr/lib/x86_64-linux-android/ |
| 24 | + - run: cp -r $CLANG/lib/linux/i386/* Android.ndk/usr/lib/i686-linux-android/ |
| 25 | + |
19 | 26 | - run: echo "INPUT(-lunwind)" > Android.ndk/usr/lib/aarch64-linux-android/libgcc.a |
20 | 27 | - run: echo "INPUT(-lunwind)" > Android.ndk/usr/lib/arm-linux-androideabi/libgcc.a |
21 | 28 | - run: echo "INPUT(-lunwind)" > Android.ndk/usr/lib/x86_64-linux-android/libgcc.a |
22 | 29 | - run: echo "INPUT(-lunwind)" > Android.ndk/usr/lib/i686-linux-android/libgcc.a |
| 30 | + |
23 | 31 | - run: tar --zstd -cf Android.ndk.tar.zst Android.ndk |
24 | 32 | - run: gh release upload $TAG Android.ndk.tar.zst -R cloudpeers/x |
25 | 33 | env: |
|
0 commit comments