Skip to content

build cloak, macos, awg for macos x86_64, arm64 #192

build cloak, macos, awg for macos x86_64, arm64

build cloak, macos, awg for macos x86_64, arm64 #192

name: macos-ios-openssl
on: [push]
jobs:
macos:
strategy:
fail-fast: false
matrix:
ssllib: [ 3.0.13 ]
runs-on: macos-12
if: |
contains(github.event.head_commit.message, '[all]') ||
contains(github.event.head_commit.message, '[macos]') ||
contains(github.event.head_commit.message, '[ios]') ||
contains(github.event.head_commit.message, '[macos-openssl]') ||
contains(github.event.head_commit.message, '[ios-openssl]') ||
contains(github.event.head_commit.message, '[openssl]')
name: "OpenSSL for MacOS,iOS"
steps:
- name: 'Get build script'
uses: actions/checkout@v3
with:
repository: jasonacox/Build-OpenSSL-cURL
ref: master
path: Build-OpenSSL-cURL
- name: 'Run build script'
run: |
cd Build-OpenSSL-cURL/openssl
sed -i '' 's/openssl-3.0.9/openssl-${{matrix.ssllib}}/' ./openssl-build.sh
sed -i '' 's/3.0.9/${{matrix.ssllib}}/' ./openssl-build-phase1.sh
sed -i '' 's/3.0.9/${{matrix.ssllib}}/' ./openssl-build-phase2.sh
./openssl-build.sh -e
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: openssl-macos-ios
path: Build-OpenSSL-cURL/openssl/*
github-release:
name: GitHub Release
needs: macos
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
- name: Setup | Artifacts
uses: actions/download-artifact@v2
- name: Setup | Checksums
run: for file in $(find ./ -name '*.a' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done
- name: Zip ALL
run: for file in *; do zip -r ${file%.*}.zip $file; done
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: openssl-macos-ios.zip
tag: ${{ github.ref }}
overwrite: true
file_glob: true