Skip to content

Commit 5aff7d7

Browse files
MacbookMacbook
authored andcommitted
add checksums [openvpnadapter-ios]
1 parent d54a4c9 commit 5aff7d7

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/build_openvpnadapter_apple.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
if: |
8282
contains(github.event.head_commit.message, '[all]') ||
8383
contains(github.event.head_commit.message, '[ios]') ||
84+
contains(github.event.head_commit.message, '[openvpnadapter-ios]') ||
8485
contains(github.event.head_commit.message, '[openvpnadapter]')
8586
8687
steps:
@@ -129,18 +130,24 @@ jobs:
129130
rm -rf $WORKINGDIR/OpenVPNAdapter/build/Release-iphoneos/mbedTLS.framework
130131
rm -rf $WORKINGDIR/OpenVPNAdapter/build/Release-iphoneos/OpenVPNAdapter.framework.dSYM
131132
132-
- name: Generate Checksums for iOS
133+
- name: Generate Checksums for OpenVPNAdapter.framework
133134
run: |
134135
export WORKINGDIR=`pwd`
135-
find $WORKINGDIR/OpenVPNAdapter/build/Release-iphoneos/ \
136-
-type f \( -name '*.framework' -o -name '*.dylib' \) \
137-
-exec sh -c 'openssl dgst -sha256 -r "$1" > "$1.sha256"' _ {} \;
136+
if [ -d "$WORKINGDIR/OpenVPNAdapter/build/Release-iphoneos/OpenVPNAdapter.framework" ]; then
137+
echo "Generating checksums for OpenVPNAdapter.framework..."
138+
find $WORKINGDIR/OpenVPNAdapter/build/Release-iphoneos/OpenVPNAdapter.framework \
139+
-type f \
140+
-exec sh -c 'openssl dgst -sha256 -r "$1" > "$1.sha256"' _ {} \;
141+
else
142+
echo "Directory $WORKINGDIR/OpenVPNAdapter/build/Release-iphoneos/OpenVPNAdapter.framework does not exist."
143+
exit 1
144+
fi
138145
139146
- name: Archive Build
140147
uses: actions/upload-artifact@v3
141148
with:
142149
name: OpenVPNAdapter-ios
143-
path: OpenVPNAdapter/build
150+
path: OpenVPNAdapter/build/Release-iphoneos
144151
github-release:
145152
name: GitHub Release
146153
needs: [build-macos, build-ios]

0 commit comments

Comments
 (0)