Skip to content

Commit 93da31f

Browse files
MacbookMacbook
authored andcommitted
add checksums [openvpnadapter]
1 parent fb3aa17 commit 93da31f

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

.github/workflows/build_openvpnadapter_apple.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
contains(github.event.head_commit.message, '[all]') ||
1111
contains(github.event.head_commit.message, '[macos]') ||
1212
contains(github.event.head_commit.message, '[openvpnadapter]')
13+
1314
steps:
1415
- name: Checkout code
1516
uses: actions/checkout@v3
@@ -62,11 +63,18 @@ jobs:
6263
rm -rf $WORKINGDIR/OpenVPNAdapter/build/Release-macos/mbedTLS.framework
6364
rm -rf $WORKINGDIR/OpenVPNAdapter/build/Release-macos/OpenVPNAdapter.framework.dSYM
6465
66+
- name: Generate Checksums for macOS
67+
run: |
68+
export WORKINGDIR=`pwd`
69+
find $WORKINGDIR/OpenVPNAdapter/build/Release-macos/ \
70+
-type f \( -name '*.framework' -o -name '*.dylib' \) \
71+
-exec sh -c 'openssl dgst -sha256 -r "$1" > "$1.sha256"' _ {} \;
72+
6573
- name: Archive Build
6674
uses: actions/upload-artifact@v3
6775
with:
6876
name: OpenVPNAdapter-macos
69-
path: OpenVPNAdapter/build/Release-macos
77+
path: OpenVPNAdapter/build
7078
build-ios:
7179
name: 'OpenVPNAdapter for iOS'
7280
runs-on: macos-latest
@@ -121,11 +129,18 @@ jobs:
121129
rm -rf $WORKINGDIR/OpenVPNAdapter/build/Release-iphoneos/mbedTLS.framework
122130
rm -rf $WORKINGDIR/OpenVPNAdapter/build/Release-iphoneos/OpenVPNAdapter.framework.dSYM
123131
132+
- name: Generate Checksums for iOS
133+
run: |
134+
export WORKINGDIR=`pwd`
135+
find $WORKINGDIR/OpenVPNAdapter/build/Release-ios/ \
136+
-type f \( -name '*.framework' -o -name '*.dylib' \) \
137+
-exec sh -c 'openssl dgst -sha256 -r "$1" > "$1.sha256"' _ {} \;
138+
124139
- name: Archive Build
125140
uses: actions/upload-artifact@v3
126141
with:
127142
name: OpenVPNAdapter-ios
128-
path: OpenVPNAdapter/build/Release-iphoneos
143+
path: OpenVPNAdapter/build
129144
github-release:
130145
name: GitHub Release
131146
needs: [build-macos, build-ios]
@@ -146,23 +161,11 @@ jobs:
146161
name: OpenVPNAdapter-macos
147162
path: openvpnadapter-mac/
148163

149-
- name: Generate Checksums for macOS
150-
run: |
151-
find ./openvpnadapter-mac/ \
152-
-type f \( -name '*.framework' -o -name '*.dylib' \) \
153-
-exec sh -c 'openssl dgst -sha256 -r "$1" > "$1.sha256"' _ {} \;
154-
155164
- name: Setup | Download iOS Artifact
156165
uses: actions/download-artifact@v3
157166
with:
158167
name: OpenVPNAdapter-ios
159168
path: openvpnadapter-ios/
160-
161-
- name: Generate Checksums for iOS
162-
run: |
163-
find ./openvpnadapter-ios/ \
164-
-type f \( -name '*.framework' -o -name '*.dylib' \) \
165-
-exec sh -c 'openssl dgst -sha256 -r "$1" > "$1.sha256"' _ {} \;
166169

167170
- name: Create Combined Folder
168171
run: |

0 commit comments

Comments
 (0)