Skip to content

Commit 238ac6b

Browse files
committed
Update workflow
1 parent 872f82e commit 238ac6b

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: ["main"]
66
schedule:
77
- cron: "18 18 * * *"
8+
workflow_dispatch:
89

910
permissions:
1011
packages: read
@@ -45,7 +46,7 @@ jobs:
4546
steps:
4647
- name: Checkout Source
4748
id: checkout
48-
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # pin@v3.4.0
49+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4.1.1
4950
- name: Compile Framework
5051
id: compile
5152
run: |
@@ -57,6 +58,12 @@ jobs:
5758
echo 'trusted-key 0xD894E2CE8B3D79F5' >> ~/.gnupg/gpg.conf
5859
GPG_VERIFY=1 ./build-ios.sh ${{ needs.query.outputs.openssl_version }}
5960
zip -r openssl.xcframework.zip openssl.xcframework/
61+
- name: Capture Build Errors
62+
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # [email protected]
63+
if: failure()
64+
with:
65+
name: build_output
66+
path: build/*.log
6067
- name: Prepare Release
6168
id: prepare
6269
run: |

build-ios.sh

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,16 @@ function build() {
5353
export CC=$(xcrun -find -sdk ${SDK} clang)
5454
export CFLAGS="-arch ${ARCH} -pipe -Os -gdwarf-2 -isysroot ${SDKDIR} -m${SDK}-version-min=12.0"
5555
export LDFLAGS="-arch ${ARCH} -isysroot ${SDKDIR}"
56+
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}"
57+
58+
echo "build variables: CC=\"${CC}\" CFLAGS=\"${CFLAGS}\" LDFLAGS=\"${LDFLAGS}\"" >> "${LOG}"
59+
echo "configure parameters: ${BUILD_ARGS}" >> "${LOG}"
5660

5761
./configure \
58-
-no-shared \
59-
-no-ui-console \
60-
-no-tests \
61-
-no-stdio \
62-
-no-threads \
63-
-no-legacy \
64-
-no-ssl2 \
65-
-no-ssl3 \
66-
-no-asm \
67-
-no-weak-ssl-ciphers \
6862
$BUILD_ARGS \
6963
--prefix=$(pwd)/artifacts \
70-
${HOST} > "${LOG}" 2>&1
71-
perl configdata.pm --dump > ../${ARCH}-${SDK}_configuration.txt
64+
${HOST} >> "${LOG}" 2>&1
65+
perl configdata.pm --dump >> ../${ARCH}-${SDK}_configuration.log
7266

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

0 commit comments

Comments
 (0)