Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnepsnai committed Jun 9, 2024
1 parent 829f24a commit 0b79817
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@ jobs:
- name: Compile Framework
id: compile
run: |
echo "Importing public keys"
gpg --import ./openssl.asc
echo 'trusted-key 0xD5E9E43F7DF9EE8C' >> ~/.gnupg/gpg.conf
echo 'trusted-key 0xD9C4D26D0E604491' >> ~/.gnupg/gpg.conf
echo 'trusted-key 0xB8EF1A6BA9DA2D5C' >> ~/.gnupg/gpg.conf
echo 'trusted-key 0x231C84CDDCC69C45' >> ~/.gnupg/gpg.conf
echo 'trusted-key 0xD894E2CE8B3D79F5' >> ~/.gnupg/gpg.conf
echo 'trusted-key 0x216094DFD0CB81EF' >> ~/.gnupg/gpg.conf
echo "Starting build"
GPG_VERIFY=1 ./build-ios.sh ${{ needs.query.outputs.openssl_version }}
zip -r openssl.xcframework.zip openssl.xcframework/
- name: Capture Build Errors
Expand Down
7 changes: 4 additions & 3 deletions build-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ BUILD_ARGS="$@"

ARCHIVE=openssl-${VERSION}.tar.gz
if [ ! -f ${ARCHIVE} ]; then
echo "Downloading openssl ${VERSION}"
echo "Downloading openssl ${VERSION}..."
curl -L "https://www.openssl.org/source/openssl-${VERSION}.tar.gz" > "${ARCHIVE}"
fi

if [ ! -z "${GPG_VERIFY}" ]; then
echo "Verifying signature for openssl-${VERSION}.tar.gz"
echo "Verifying signature for openssl-${VERSION}.tar.gz..."
rm -f "${ARCHIVE}.asc"
curl -L "https://www.openssl.org/source/openssl-${VERSION}.tar.gz.asc" > "${ARCHIVE}.asc"
gpg --verify "${ARCHIVE}.asc" "${ARCHIVE}" >/dev/null
gpg --verify "${ARCHIVE}.asc" "${ARCHIVE}"
echo "Verified signature for openssl-${VERSION}.tar.gz successfully!"
fi

###########
Expand Down

0 comments on commit 0b79817

Please sign in to comment.