@@ -147,4 +147,39 @@ jobs:
147147 uses : actions/upload-artifact@v4
148148 with :
149149 name : ${{env.MODEL_NAME}}-${{ matrix.os }}-${{ matrix.name }}
150- path : ${{env.PYTHON_FOLDER}}
150+ path : ${{env.PYTHON_FOLDER}}
151+
152+ codesign :
153+ runs-on : macos-latest
154+ needs : build-and-test
155+ steps :
156+ - name : checkout
157+ uses : actions/checkout@v3
158+ - uses : apple-actions/import-codesign-certs@v2
159+ continue-on-error : true
160+ with :
161+ p12-file-base64 : ${{ secrets.CODE_SIGN_P12_BASE64 }}
162+ p12-password : ${{ secrets.CODE_SIGN_P12_PASSWORD }}
163+ - name : Download Artifact
164+ uses : actions/download-artifact@v4
165+ with :
166+ name : ${{env.MODEL_NAME}}-mac-amd64
167+ - name : Download Artifact
168+ uses : actions/download-artifact@v4
169+ with :
170+ name : ${{env.MODEL_NAME}}-mac-amd64
171+
172+ - run : |
173+ find "${{env.MODEL_NAME}}-mac-amd64" \( -type f -perm +111 -o -name "*.node" \) -exec codesign --force --entitlements="./engine/templates/macos/entitlements.plist" -s "${{ secrets.DEVELOPER_ID }}" --options=runtime {} \;
174+ find "${{env.MODEL_NAME}}-mac-arm64" \( -type f -perm +111 -o -name "*.node" \) -exec codesign --force --entitlements="./engine/templates/macos/entitlements.plist" -s "${{ secrets.DEVELOPER_ID }}" --options=runtime {} \;
175+
176+ - name : Upload Artifact
177+ uses : actions/upload-artifact@v4
178+ with :
179+ name : ${{env.MODEL_NAME}}-mac-amd64
180+ path : ${{env.MODEL_NAME}}-mac-amd64
181+ - name : Upload Artifact
182+ uses : actions/upload-artifact@v4
183+ with :
184+ name : ${{env.MODEL_NAME}}-mac-arm64
185+ path : ${{env.MODEL_NAME}}-mac-arm64
0 commit comments