@@ -253,6 +253,14 @@ jobs:
253
253
cd engine
254
254
make codesign-binary CODE_SIGN=true DEVELOPER_ID="${{ secrets.DEVELOPER_ID }}" DESTINATION_BINARY_NAME="${{ steps.set-output-params.outputs.destination_binary_name }}" DESTINATION_BINARY_SERVER_NAME="${{ steps.set-output-params.outputs.destination_binary_server_name }}"
255
255
256
+ - name : Code Signing binaries for separate binary
257
+ run : |
258
+ codesign --force -s "${{ secrets.DEVELOPER_ID }}" --options=runtime --entitlements="./engine/templates/macos/entitlements.plist" ./cortex-${{ inputs.new_version }}-mac-arm64/${{ steps.set-output-params.outputs.destination_binary_name }}
259
+ codesign --force -s "${{ secrets.DEVELOPER_ID }}" --options=runtime --entitlements="./engine/templates/macos/entitlements.plist" ./cortex-${{ inputs.new_version }}-mac-arm64/${{ steps.set-output-params.outputs.destination_binary_server_name }}
260
+
261
+ codesign --force -s "${{ secrets.DEVELOPER_ID }}" --options=runtime --entitlements="./engine/templates/macos/entitlements.plist" ./cortex-${{ inputs.new_version }}-mac-amd64/${{ steps.set-output-params.outputs.destination_binary_name }}
262
+ codesign --force -s "${{ secrets.DEVELOPER_ID }}" --options=runtime --entitlements="./engine/templates/macos/entitlements.plist" ./cortex-${{ inputs.new_version }}-mac-amd64/${{ steps.set-output-params.outputs.destination_binary_server_name }}
263
+
256
264
- name : Notary macOS Binary
257
265
run : |
258
266
curl -sSfL https://raw.githubusercontent.com/anchore/quill/main/install.sh | sh -s -- -b /usr/local/bin
@@ -265,6 +273,18 @@ jobs:
265
273
QUILL_NOTARY_ISSUER : ${{ secrets.NOTARY_ISSUER }}
266
274
QUILL_NOTARY_KEY : " /tmp/notary-key.p8"
267
275
276
+ - name : Notary macOS Binary for separate binary
277
+ run : |
278
+ # Notarize the binary
279
+ quill notarize ./cortex-${{ inputs.new_version }}-mac-arm64/${{ steps.set-output-params.outputs.destination_binary_name }}
280
+ quill notarize ./cortex-${{ inputs.new_version }}-mac-arm64/${{ steps.set-output-params.outputs.destination_binary_server_name }}
281
+ quill notarize ./cortex-${{ inputs.new_version }}-mac-amd64/${{ steps.set-output-params.outputs.destination_binary_name }}
282
+ quill notarize ./cortex-${{ inputs.new_version }}-mac-amd64/${{ steps.set-output-params.outputs.destination_binary_server_name }}
283
+ env :
284
+ QUILL_NOTARY_KEY_ID : ${{ secrets.NOTARY_KEY_ID }}
285
+ QUILL_NOTARY_ISSUER : ${{ secrets.NOTARY_ISSUER }}
286
+ QUILL_NOTARY_KEY : " /tmp/notary-key.p8"
287
+
268
288
- name : Build network Installers
269
289
shell : bash
270
290
run : |
@@ -310,6 +330,14 @@ jobs:
310
330
xcrun notarytool submit ${{ steps.set-output-params.outputs.package_name }}-local.pkg --apple-id ${{ secrets.APPLE_ID }} --password ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} --team-id ${{ secrets.APPLE_TEAM_ID }} --wait
311
331
312
332
- name : Package
333
+ run : |
334
+ # Mac arm64
335
+ tar -czvf cortex-arm64.tar.gz cortex-${{ inputs.new_version }}-mac-arm64
336
+
337
+ # Mac amd64
338
+ tar -czvf cortex-amd64.tar.gz cortex-${{ inputs.new_version }}-mac-amd64
339
+
340
+ - name : Package for separate binary
313
341
run : |
314
342
cd engine
315
343
make package
@@ -320,6 +348,18 @@ jobs:
320
348
name : cortex-${{ inputs.new_version }}-mac-universal
321
349
path : ./engine/cortex
322
350
351
+ - name : Upload Artifact
352
+ uses : actions/upload-artifact@v4
353
+ with :
354
+ name : cortex-${{ inputs.new_version }}-mac-arm64-signed
355
+ path : ./cortex-${{ inputs.new_version }}-mac-arm64
356
+
357
+ - name : Upload Artifact
358
+ uses : actions/upload-artifact@v4
359
+ with :
360
+ name : cortex-${{ inputs.new_version }}-mac-amd64-signed
361
+ path : ./cortex-${{ inputs.new_version }}-mac-amd64
362
+
323
363
- name : Upload Artifact
324
364
uses : actions/upload-artifact@v4
325
365
with :
@@ -358,6 +398,28 @@ jobs:
358
398
asset_name : cortex-${{ inputs.new_version }}-mac-universal.tar.gz
359
399
asset_content_type : application/zip
360
400
401
+ - name : Upload release assert if public provider is github
402
+ if : inputs.public_provider == 'github'
403
+ env :
404
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
405
+
406
+ with :
407
+ upload_url : ${{ inputs.upload_url }}
408
+ asset_path : ./cortex-arm64.tar.gz
409
+ asset_name : cortex-${{ inputs.new_version }}-mac-arm64.tar.gz
410
+ asset_content_type : application/zip
411
+
412
+ - name : Upload release assert if public provider is github
413
+ if : inputs.public_provider == 'github'
414
+ env :
415
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
416
+
417
+ with :
418
+ upload_url : ${{ inputs.upload_url }}
419
+ asset_path : ./cortex-amd64.tar.gz
420
+ asset_name : cortex-${{ inputs.new_version }}-mac-amd64.tar.gz
421
+ asset_content_type : application/zip
422
+
361
423
- name : Upload release assert if public provider is github
362
424
if : inputs.public_provider == 'github'
363
425
env :
0 commit comments