fix openssl download url #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: Compile armeabi-v7a | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ master ] | |
env: | |
ANDROID_ABI: armeabi-v7a | |
OPENSSL_VERSION: 3.3.2 | |
ANDROID_NDK_VERSION: r20b | |
WORK_PATH: /home/runner/work/openssl_for_android/openssl_for_android | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
Compile_OpenSSL_for_Android_armeabi-v7a: | |
name: Compile armeabi-v7a | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $env.WORK_PATH, so your job can access it | |
- uses: actions/checkout@main | |
- name: Install aria2 | |
run: | | |
sudo apt -yqq update | |
sudo apt install -yqq aria2 | |
- name: Download Android NDK | |
id: download_ndk | |
run: | | |
aria2c https://dl.google.com/android/repository/android-ndk-${{env.ANDROID_NDK_VERSION}}-linux-x86_64.zip | |
unzip android-ndk-${{env.ANDROID_NDK_VERSION}}-linux-x86_64.zip | |
echo "::set-output name=status::success" | |
- name: Download OpenSSL | |
id: download_openssl | |
run: | | |
aria2c https://github.com/openssl/openssl/releases/download/openssl-${{env.OPENSSL_VERSION}}/openssl-${{env.OPENSSL_VERSION}}.tar.gz | |
tar -zxvf openssl-${{env.OPENSSL_VERSION}}.tar.gz | |
echo "::set-output name=status::success" | |
- name: Compile | |
id: compile | |
if: steps.download_ndk.outputs.status == 'success' && steps.download_openssl.outputs.status == 'success' && !cancelled() | |
run: | | |
mkdir build | |
bash ./openssl_build_${{env.ANDROID_ABI}}.sh | |
echo "::set-output name=status::success" | |
- name: Generate release tag | |
id: tag | |
run: | | |
tar -zcvf OpenSSL_${{env.OPENSSL_VERSION}}_${{env.ANDROID_ABI}}.tar.gz openssl_${{env.OPENSSL_VERSION}}_${{env.ANDROID_ABI}} | |
echo "::set-output name=release_tag::${{env.OPENSSL_VERSION}}" | |
echo "::set-output name=status::success" | |
- name: Upload firmware to release | |
if: steps.tag.outputs.status == 'success' && !cancelled() | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.tag.outputs.release_tag }} | |
files: ${{env.WORK_PATH}}/OpenSSL_${{env.OPENSSL_VERSION}}_${{env.ANDROID_ABI}}.tar.gz | |
- name: Delete workflow runs | |
uses: Mattraks/delete-workflow-runs@main | |
with: | |
retain_days: 0 | |
keep_minimum_runs: 8 |