@@ -193,28 +193,37 @@ jobs:
193193 codesign --force --entitlements="/tmp/entitlements.plist" -s "${{ secrets.DEVELOPER_ID }}" --options=runtime ${{env.PYTHON_FOLDER}}/bin/python
194194 codesign --force --entitlements="/tmp/entitlements.plist" -s "${{ secrets.DEVELOPER_ID }}" --options=runtime ${{env.PYTHON_FOLDER}}/bin/python3
195195 # Code sign all .so files and .dylib files
196+
197+ find ${{env.PYTHON_FOLDER}} -type f \( -name "*.so" -o -name "*.dylib" \) -exec codesign --force --entitlements="/tmp/entitlements.plist" -s "${{ secrets.DEVELOPER_ID }}" --options=runtime {} \;
196198
197- find ${{env.PYTHON_FOLDER}} -type f \( -name "*.so" \) -exec codesign --deep --force --entitlements="/tmp/entitlements.plist" -s "${{ secrets.DEVELOPER_ID }}" {} \;
198- find ${{env.PYTHON_FOLDER}} -type f \( -name "*.dylib" \) -exec codesign --deep --force -s " ${{ secrets.DEVELOPER_ID }}" {} \;
199+ # Zip the python folder for notarization
200+ zip -r ./ ${{env.MODEL_NAME}}-${{ matrix.os }}- ${{ matrix.name }}.zip ${{env.PYTHON_FOLDER}}
199201
200202 curl -sSfL https://raw.githubusercontent.com/anchore/quill/main/install.sh | sudo sh -s -- -b /usr/local/bin
201203 # Notarize the binary
202- quill notarize ${{env.PYTHON_FOLDER}}/bin/python
203- quill notarize ${{env.PYTHON_FOLDER}}/bin/python3
204+ quill notarize ${{env.MODEL_NAME}}-${{ matrix.os }}-${{ matrix.name }}.zip
204205 env :
205206 QUILL_NOTARY_KEY_ID : ${{ secrets.NOTARY_KEY_ID }}
206207 QUILL_NOTARY_ISSUER : ${{ secrets.NOTARY_ISSUER }}
207208 QUILL_NOTARY_KEY : " /tmp/notary-key.p8"
208209
209210 - name : Upload Artifact
210- # if : runner.os == 'windows' || runner.os == 'linux'
211+ if : runner.os == 'windows' || runner.os == 'linux'
211212 uses : actions/upload-artifact@v4
212213 with :
213214 name : ${{env.MODEL_NAME}}-${{ matrix.os }}-${{ matrix.name }}
214215 path : ${{env.PYTHON_FOLDER}}
215216 include-hidden-files : true
216217 compression-level : 9
217218
219+ - name : Upload Artifact
220+ if : runner.os == 'macOS'
221+ uses : actions/upload-artifact@v4
222+ with :
223+ name : ${{env.MODEL_NAME}}-${{ matrix.os }}-${{ matrix.name }}
224+ path : ${{env.MODEL_NAME}}-${{ matrix.os }}-${{ matrix.name }}.zip
225+ include-hidden-files : true
226+
218227 - name : Post Upload windows
219228 if : runner.os == 'windows'
220229 run : |
0 commit comments