Skip to content

Commit

Permalink
[openvpnadapter] build for arm64vs x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
Macbook authored and Macbook committed Dec 21, 2024
1 parent 6238fc2 commit 959a349
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build_openvpnadapter_apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
echo "Using macOS SDK version: $MACOSX_SDK"
echo "::set-output name=sdk::$MACOSX_SDK"
- name: Build OpenVPNAdapter
- name: Build OpenVPNAdapter for x86_64
run: |
cd OpenVPNAdapter
export XCODEBUILD="/usr/bin/xcodebuild"
Expand All @@ -49,8 +49,28 @@ jobs:
-xcconfig Configuration/amnezia.xcconfig \
-sdk macosx${{ steps.sdk_version.outputs.sdk }} \
-destination 'generic/platform=macOS' \
-arch x86_64 \
-project OpenVPNAdapter.xcodeproj
- name: Build OpenVPNAdapter for arm64
run: |
cd OpenVPNAdapter
export XCODEBUILD="/usr/bin/xcodebuild"
$XCODEBUILD -scheme OpenVPNAdapter \
-configuration Release \
-xcconfig Configuration/amnezia.xcconfig \
-sdk macosx${{ steps.sdk_version.outputs.sdk }} \
-destination 'generic/platform=macOS' \
-arch arm64 \
-project OpenVPNAdapter.xcodeproj
- name: Create Universal Binary
run: |
cd OpenVPNAdapter/build/Release-macos
lipo -create -output OpenVPNAdapter.framework/OpenVPNAdapter \
x86_64/OpenVPNAdapter.framework/OpenVPNAdapter \
arm64/OpenVPNAdapter.framework/OpenVPNAdapter
- name: Remove CodeSignature
run: |
echo "Removing CodeSignature if exists..."
Expand Down

0 comments on commit 959a349

Please sign in to comment.