@@ -197,9 +197,45 @@ jobs:
197197 gemini_api_key : ' ${{ secrets.GEMINI_API_KEY }}'
198198 working-directory : ' ./release'
199199
200+ build-mac :
201+ name : ' Build Unsigned (${{ matrix.arch }})'
202+ needs : ' calculate-versions'
203+ runs-on : ' macos-latest'
204+ strategy :
205+ fail-fast : false
206+ matrix :
207+ arch : ['x64', 'arm64']
208+ steps :
209+ - name : ' Checkout Ref'
210+ uses : ' actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8'
211+ with :
212+ ref : ' ${{ github.event.inputs.ref }}'
213+
214+ - name : ' Set up Node.js'
215+ uses : ' actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020'
216+ with :
217+ node-version-file : ' .nvmrc'
218+ architecture : ' ${{ matrix.arch }}'
219+ cache : ' npm'
220+
221+ - name : ' Install dependencies'
222+ run : ' npm ci'
223+
224+ - name : ' Build Binary'
225+ env :
226+ SKIP_SIGNING : ' true'
227+ run : ' npm run build:binary'
228+
229+ - name : ' Upload Artifact'
230+ uses : ' actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02'
231+ with :
232+ name : ' gemini-darwin-${{ matrix.arch }}-unsigned'
233+ path : ' dist/darwin-${{ matrix.arch }}/gemini'
234+ retention-days : 1
235+
200236 publish-preview :
201237 name : ' Publish preview'
202- needs : ['calculate-versions', 'test']
238+ needs : ['calculate-versions', 'test', 'build-mac' ]
203239 runs-on : ' ubuntu-latest'
204240 environment : " ${{ github.event.inputs.environment || 'prod' }}"
205241 permissions :
@@ -229,6 +265,20 @@ jobs:
229265 working-directory : ' ./release'
230266 run : ' npm ci'
231267
268+ - name : ' Download macOS arm64 binary'
269+ uses : ' actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16'
270+ continue-on-error : true
271+ with :
272+ name : ' gemini-darwin-arm64-unsigned'
273+ path : ' release/dist/darwin-arm64'
274+
275+ - name : ' Download macOS x64 binary'
276+ uses : ' actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16'
277+ continue-on-error : true
278+ with :
279+ name : ' gemini-darwin-x64-unsigned'
280+ path : ' release/dist/darwin-x64'
281+
232282 - name : ' Publish Release'
233283 uses : ' ./.github/actions/publish-release'
234284 with :
@@ -266,7 +316,7 @@ jobs:
266316
267317 publish-stable :
268318 name : ' Publish stable'
269- needs : ['calculate-versions', 'test', 'publish-preview']
319+ needs : ['calculate-versions', 'test', 'publish-preview', 'build-mac' ]
270320 runs-on : ' ubuntu-latest'
271321 environment : " ${{ github.event.inputs.environment || 'prod' }}"
272322 permissions :
@@ -296,6 +346,20 @@ jobs:
296346 working-directory : ' ./release'
297347 run : ' npm ci'
298348
349+ - name : ' Download macOS arm64 binary'
350+ uses : ' actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16'
351+ continue-on-error : true
352+ with :
353+ name : ' gemini-darwin-arm64-unsigned'
354+ path : ' release/dist/darwin-arm64'
355+
356+ - name : ' Download macOS x64 binary'
357+ uses : ' actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16'
358+ continue-on-error : true
359+ with :
360+ name : ' gemini-darwin-x64-unsigned'
361+ path : ' release/dist/darwin-x64'
362+
299363 - name : ' Publish Release'
300364 uses : ' ./.github/actions/publish-release'
301365 with :
0 commit comments