@@ -303,12 +303,6 @@ jobs:
303303 cd cortex-cpp
304304 make run-e2e-test RUN_TESTS=true LLM_MODEL_URL=${{ env.LLM_MODEL_URL }} EMBEDDING_MODEL_URL=${{ env.EMBEDDING_MODEL_URL }}
305305
306- - name : Upload Artifact
307- uses : actions/upload-artifact@v2
308- with :
309- name : cortex-cpp-${{ matrix.os }}-${{ matrix.name }}
310- path : ./cortex-cpp/cortex-cpp
311-
312306 - uses : actions/upload-release-asset@v1.0.1
313307 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
314308 env :
@@ -352,7 +346,7 @@ jobs:
352346
353347 - os : " mac"
354348 name : " arm64"
355- runs-on : " macos-latest "
349+ runs-on : " macos-silicon "
356350 steps :
357351 - name : Clone
358352 id : checkout
@@ -410,6 +404,7 @@ jobs:
410404 CODE_SIGN_P12_BASE64 : ${{ secrets.CODE_SIGN_P12_BASE64 }}
411405
412406 - uses : apple-actions/import-codesign-certs@v2
407+ continue-on-error : true
413408 if : runner.os == 'macOS'
414409 with :
415410 p12-file-base64 : ${{ secrets.CODE_SIGN_P12_BASE64 }}
@@ -420,18 +415,33 @@ jobs:
420415 cd cortex-js
421416 make update-app-info
422417
418+ - name : copy bin file macos
419+ if : runner.os == 'macOS'
420+ run : |
421+ cd cortex-js
422+ mkdir -p installer
423+ which cp
424+ which mv
425+ npm install -g cpx
426+ npx cpx ./dist/cortexso-macos ./
427+ mv cortexso-macos cortex
428+
423429 - name : Code Signing macOS
424430 if : runner.os == 'macOS'
425431 run : |
426432 cd cortex-js
433+ ./dist/cortexso-macos --help
434+ echo "--------"
435+ ./cortex --help
427436 make codesign-binary CODE_SIGN=true DEVELOPER_ID="${{ secrets.DEVELOPER_ID }}"
428437
429438 - name : Create MacOS PKG Installer
430439 if : runner.os == 'macOS'
431440 run : |
432441 cd cortex-js
433- mkdir installer
434- cp cortex installer/cortex
442+ echo "--------"
443+ npx cpx ./cortex ./installer
444+ ./installer/cortex --help
435445 pkgbuild --identifier ai.cortex.pkg --install-location ./usr/local/bin/ --root ./installer cortex-installer.pkg
436446 make codesign-installer CODE_SIGN=true DEVELOPER_ID="${{ secrets.DEVELOPER_ID }}"
437447
@@ -485,38 +495,6 @@ jobs:
485495 cd cortex-js
486496 make postbundle
487497
488- - name : Upload Artifact
489- uses : actions/upload-artifact@v2
490- with :
491- name : cortex-${{ matrix.os }}-${{ matrix.name }}
492- path : |
493- ./cortex-js/cortex
494- ./cortex-js/cortex.exe
495-
496- - name : Upload Windows Installer
497- if : runner.os == 'Windows'
498- uses : actions/upload-artifact@v2
499- with :
500- name : cortex-installer-${{ matrix.os }}-${{ matrix.name }}
501- path : |
502- ./cortex-js/setup.exe
503-
504- - name : Upload Linux Installer
505- if : runner.os == 'Linux'
506- uses : actions/upload-artifact@v2
507- with :
508- name : cortex-installer-${{ matrix.os }}-${{ matrix.name }}
509- path : |
510- ./cortex-js/cortexso.deb
511-
512- - name : Upload MacOS Installer
513- if : runner.os == 'macOS'
514- uses : actions/upload-artifact@v2
515- with :
516- name : cortex-installer-${{ matrix.os }}-${{ matrix.name }}
517- path : |
518- ./cortex-js/cortex-installer.pkg
519-
520498 - name : Upload Cortex Installer
521499 uses : actions/upload-release-asset@v1.0.1
522500 if : runner.os != 'Linux'
0 commit comments