3737 fail-fast : false
3838 matrix :
3939 config :
40- - {name: "macOS-latest", os: "macOS-latest", cmake_extra: "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_OSX_ARCHITECTURES=\"x86_64;arm64\" -DLSL_FRAMEWORK =ON" }
41- - {name: "iOS", os: "macOS-latest", cmake_extra: "-DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_DEPLOYMENT_TARGET=12.0 -DCMAKE_OSX_ARCHITECTURES=\"arm64;x86_64\" - DCMAKE_TOOLCHAIN_FILE=cmake/ios.toolchain.cmake -DLSL_FRAMEWORK=ON " }
40+ - {name: "macOS-latest", os: "macOS-latest", cmake_extra: "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DLSL_UNITTESTS=ON -DLSL_BENCHMARKS =ON" }
41+ - {name: "iOS", os: "macOS-latest", cmake_extra: "-DCMAKE_TOOLCHAIN_FILE=cmake/ios.toolchain.cmake -DPLATFORM=OS64 " }
4242
4343 steps :
4444 - uses : actions/checkout@v4
5959 cmake -S . -B build \
6060 -DCMAKE_BUILD_TYPE=Release \
6161 -DCMAKE_INSTALL_PREFIX=${PWD}/install \
62- -DLSL_UNITTESTS=ON \
63- -DLSL_BENCHMARKS=ON \
6462 -DCPACK_PACKAGE_DIRECTORY=${PWD}/package \
63+ -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" \
64+ -DLSL_FRAMEWORK=ON \
6565 -Dlslgitrevision=${{ github.sha }} \
6666 -Dlslgitbranch=${{ github.ref }} \
6767 ${{ matrix.config.cmake_extra }} \
@@ -89,15 +89,25 @@ jobs:
8989
9090 - name : Codesign
9191 run : |
92- codesign -vvv --force --deep --sign "$APPLE_CODE_SIGN_IDENTITY_APP" \
93- --entitlements lsl.entitlements --options runtime \
94- install/Frameworks/lsl.framework/Versions/A/lsl
95- codesign -vvv --force --deep --sign "$APPLE_CODE_SIGN_IDENTITY_APP" \
96- --entitlements lsl.entitlements --options runtime \
97- install/Frameworks/lsl.framework
98- echo "✅ Verifying binary signatures in install target..."
99- codesign -vvv --verify --deep --strict install/Frameworks/lsl.framework/Versions/A/lsl
100- codesign -vvv --verify --deep --strict install/Frameworks/lsl.framework
92+ if [[ "${{ matrix.config.name }}" == "macOS-latest" ]]; then
93+ codesign -vvv --force --deep --sign "$APPLE_CODE_SIGN_IDENTITY_APP" \
94+ --entitlements lsl.entitlements --options runtime \
95+ install/Frameworks/lsl.framework/Versions/A/lsl
96+ codesign -vvv --force --deep --sign "$APPLE_CODE_SIGN_IDENTITY_APP" \
97+ --entitlements lsl.entitlements --options runtime \
98+ install/Frameworks/lsl.framework
99+ echo "✅ Verifying binary signatures in install target..."
100+ codesign -vvv --verify --deep --strict install/Frameworks/lsl.framework/Versions/A/lsl
101+ codesign -vvv --verify --deep --strict install/Frameworks/lsl.framework
102+ elif [[ "${{ matrix.config.name }}" == "iOS" ]]; then
103+ codesign -vvv --force --deep --sign "$APPLE_CODE_SIGN_IDENTITY_APP" \
104+ install/Frameworks/lsl.framework/lsl
105+ codesign -vvv --force --deep --sign "$APPLE_CODE_SIGN_IDENTITY_APP" \
106+ install/Frameworks/lsl.framework
107+ echo "✅ Verifying binary signatures in install target..."
108+ codesign -vvv --verify --deep --strict install/Frameworks/lsl.framework/lsl
109+ codesign -vvv --verify --deep --strict install/Frameworks/lsl.framework
110+ fi
101111
102112 - name : upload install dir
103113 uses : actions/upload-artifact@v4
@@ -126,6 +136,7 @@ jobs:
126136 needs : build
127137 runs-on : macOS-latest
128138 steps :
139+ - uses : actions/checkout@v4
129140 - uses : actions/download-artifact@v4
130141 with :
131142 name : build-macOS-latest
@@ -183,13 +194,6 @@ jobs:
183194
184195 ditto -c -k --sequesterRsrc --keepParent lsl.xcframework lsl.xcframework.zip
185196
186- xcrun notarytool submit lsl.xcframework.zip \
187- --apple-id "$APPLE_NOTARIZE_USERNAME" \
188- --password "$APPLE_NOTARIZE_PASSWORD" \
189- --team-id "$APPLE_DEVELOPMENT_TEAM" \
190- --wait
191- xcrun stapler staple lsl.xcframework
192-
193197 - name : upload artifacts
194198 uses : actions/upload-artifact@v4
195199 with :
@@ -210,4 +214,4 @@ jobs:
210214 NAME=$(basename $pkg)
211215 MIME=$(file --mime-type $pkg|cut -d ' ' -f2)
212216 curl -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: $TOKEN" -H "Content-Type: $MIME" --data-binary @$pkg $UPLOAD_URL?name=$NAME
213- done
217+ done
0 commit comments