From 4f9cb6f8aa4f2e7d2f5ef760591ed04db6a9bfcc Mon Sep 17 00:00:00 2001 From: izzy2lost Date: Thu, 31 Jul 2025 00:56:28 -0400 Subject: [PATCH] Make workflow to build .so's --- .github/workflows/Build.yml | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/Build.yml diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml new file mode 100644 index 0000000..a5cee50 --- /dev/null +++ b/.github/workflows/Build.yml @@ -0,0 +1,49 @@ +name: Build OpenSSL for Android + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + env: + # Optional: override these if needed + ANDROID_NDK_VERSION: 26.0.10792818 + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Install build dependencies + run: | + sudo apt-get update + sudo apt-get install -y build-essential curl tar llvm make + + - name: Setup Android SDK & NDK + uses: android-actions/setup-android@v3 + with: + ndk-version: ${{ env.ANDROID_NDK_VERSION }} + + - name: Show NDK location + run: | + echo "NDK location: $ANDROID_HOME/ndk/${ANDROID_NDK_VERSION}" + ls $ANDROID_HOME/ndk/${ANDROID_NDK_VERSION} + + - name: Build OpenSSL for all Android ABIs + env: + NDK_ROOT_PREFIX: ${{ env.ANDROID_HOME }}/ndk + run: | + chmod +x ./build-openssl.sh + ./build-openssl.sh + + - name: Collect .so files for upload + run: | + mkdir -p artifacts + find build -name "*.so" -exec cp --parents {} artifacts/ \; + + - name: Upload OpenSSL .so artifacts + uses: actions/upload-artifact@v4 + with: + name: android-openssl-libs + path: artifacts/