Skip to content

Commit

Permalink
add checksums [openvpnadapter]
Browse files Browse the repository at this point in the history
  • Loading branch information
Macbook authored and Macbook committed Jan 17, 2025
1 parent fb3aa17 commit 93da31f
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/build_openvpnadapter_apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
contains(github.event.head_commit.message, '[all]') ||
contains(github.event.head_commit.message, '[macos]') ||
contains(github.event.head_commit.message, '[openvpnadapter]')
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down Expand Up @@ -62,11 +63,18 @@ jobs:
rm -rf $WORKINGDIR/OpenVPNAdapter/build/Release-macos/mbedTLS.framework
rm -rf $WORKINGDIR/OpenVPNAdapter/build/Release-macos/OpenVPNAdapter.framework.dSYM
- name: Generate Checksums for macOS
run: |
export WORKINGDIR=`pwd`
find $WORKINGDIR/OpenVPNAdapter/build/Release-macos/ \
-type f \( -name '*.framework' -o -name '*.dylib' \) \
-exec sh -c 'openssl dgst -sha256 -r "$1" > "$1.sha256"' _ {} \;
- name: Archive Build
uses: actions/upload-artifact@v3
with:
name: OpenVPNAdapter-macos
path: OpenVPNAdapter/build/Release-macos
path: OpenVPNAdapter/build
build-ios:
name: 'OpenVPNAdapter for iOS'
runs-on: macos-latest
Expand Down Expand Up @@ -121,11 +129,18 @@ jobs:
rm -rf $WORKINGDIR/OpenVPNAdapter/build/Release-iphoneos/mbedTLS.framework
rm -rf $WORKINGDIR/OpenVPNAdapter/build/Release-iphoneos/OpenVPNAdapter.framework.dSYM
- name: Generate Checksums for iOS
run: |
export WORKINGDIR=`pwd`
find $WORKINGDIR/OpenVPNAdapter/build/Release-ios/ \
-type f \( -name '*.framework' -o -name '*.dylib' \) \
-exec sh -c 'openssl dgst -sha256 -r "$1" > "$1.sha256"' _ {} \;
- name: Archive Build
uses: actions/upload-artifact@v3
with:
name: OpenVPNAdapter-ios
path: OpenVPNAdapter/build/Release-iphoneos
path: OpenVPNAdapter/build
github-release:
name: GitHub Release
needs: [build-macos, build-ios]
Expand All @@ -146,23 +161,11 @@ jobs:
name: OpenVPNAdapter-macos
path: openvpnadapter-mac/

- name: Generate Checksums for macOS
run: |
find ./openvpnadapter-mac/ \
-type f \( -name '*.framework' -o -name '*.dylib' \) \
-exec sh -c 'openssl dgst -sha256 -r "$1" > "$1.sha256"' _ {} \;
- name: Setup | Download iOS Artifact
uses: actions/download-artifact@v3
with:
name: OpenVPNAdapter-ios
path: openvpnadapter-ios/

- name: Generate Checksums for iOS
run: |
find ./openvpnadapter-ios/ \
-type f \( -name '*.framework' -o -name '*.dylib' \) \
-exec sh -c 'openssl dgst -sha256 -r "$1" > "$1.sha256"' _ {} \;

- name: Create Combined Folder
run: |
Expand Down

0 comments on commit 93da31f

Please sign in to comment.