Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit f822179

Browse files
Merge branch 'feat/python-package-ci' of github.com:janhq/cortex.cpp into feat/python-package-ci
2 parents 00b0252 + bd08950 commit f822179

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

.github/workflows/python-package.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)