Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnepsnai committed Jan 31, 2024
1 parent 872f82e commit 238ac6b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: ["main"]
schedule:
- cron: "18 18 * * *"
workflow_dispatch:

permissions:
packages: read
Expand Down Expand Up @@ -45,7 +46,7 @@ jobs:
steps:
- name: Checkout Source
id: checkout
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # pin@v3.4.0
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4.1.1
- name: Compile Framework
id: compile
run: |
Expand All @@ -57,6 +58,12 @@ jobs:
echo 'trusted-key 0xD894E2CE8B3D79F5' >> ~/.gnupg/gpg.conf
GPG_VERIFY=1 ./build-ios.sh ${{ needs.query.outputs.openssl_version }}
zip -r openssl.xcframework.zip openssl.xcframework/
- name: Capture Build Errors
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # pin@v4.3.0
if: failure()
with:
name: build_output
path: build/*.log
- name: Prepare Release
id: prepare
run: |
Expand Down
18 changes: 6 additions & 12 deletions build-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,16 @@ function build() {
export CC=$(xcrun -find -sdk ${SDK} clang)
export CFLAGS="-arch ${ARCH} -pipe -Os -gdwarf-2 -isysroot ${SDKDIR} -m${SDK}-version-min=12.0"
export LDFLAGS="-arch ${ARCH} -isysroot ${SDKDIR}"
BUILD_ARGS="-no-shared -no-ui-console -no-tests -no-stdio -no-threads -no-legacy -no-ssl2 -no-ssl3 -no-asm -no-weak-ssl-ciphers ${BUILD_ARGS}"

echo "build variables: CC=\"${CC}\" CFLAGS=\"${CFLAGS}\" LDFLAGS=\"${LDFLAGS}\"" >> "${LOG}"
echo "configure parameters: ${BUILD_ARGS}" >> "${LOG}"

./configure \
-no-shared \
-no-ui-console \
-no-tests \
-no-stdio \
-no-threads \
-no-legacy \
-no-ssl2 \
-no-ssl3 \
-no-asm \
-no-weak-ssl-ciphers \
$BUILD_ARGS \
--prefix=$(pwd)/artifacts \
${HOST} > "${LOG}" 2>&1
perl configdata.pm --dump > ../${ARCH}-${SDK}_configuration.txt
${HOST} >> "${LOG}" 2>&1
perl configdata.pm --dump >> ../${ARCH}-${SDK}_configuration.log

make -j $(sysctl -n hw.logicalcpu_max) >> "${LOG}" 2>&1
make install >> "${LOG}" 2>&1
Expand Down

0 comments on commit 238ac6b

Please sign in to comment.