ci(release): build and attach unsigned macOS binaries to releases (#26462)

This commit is contained in:
ruomeng
2026-05-05 17:59:54 -04:00
committed by GitHub
parent 3627f4777f
commit e039fcdf2a
6 changed files with 89 additions and 5 deletions
@@ -0,0 +1,23 @@
name: 'Download Mac Binaries'
description: 'Downloads the unsigned macOS binaries (x64 and arm64)'
inputs:
path:
description: 'The base path to download the binaries to'
required: true
default: 'dist'
runs:
using: 'composite'
steps:
- name: 'Download macOS arm64 binary'
uses: 'actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806' # ratchet:actions/download-artifact@v4
continue-on-error: true
with:
name: 'gemini-darwin-arm64-unsigned'
path: '${{ inputs.path }}/darwin-arm64'
- name: 'Download macOS x64 binary'
uses: 'actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806' # ratchet:actions/download-artifact@v4
continue-on-error: true
with:
name: 'gemini-darwin-x64-unsigned'
path: '${{ inputs.path }}/darwin-x64'
+14 -1
View File
@@ -308,8 +308,21 @@ runs:
fi
rm -rf test-bundle
RELEASE_ASSETS=("gemini-cli-bundle.zip")
# Check for and prepare macOS binaries if they exist
if [[ -f "dist/darwin-arm64/gemini" ]]; then
zip -j gemini-darwin-arm64-unsigned.zip dist/darwin-arm64/gemini
RELEASE_ASSETS+=("gemini-darwin-arm64-unsigned.zip")
fi
if [[ -f "dist/darwin-x64/gemini" ]]; then
zip -j gemini-darwin-x64-unsigned.zip dist/darwin-x64/gemini
RELEASE_ASSETS+=("gemini-darwin-x64-unsigned.zip")
fi
gh release create "${INPUTS_RELEASE_TAG}" \
gemini-cli-bundle.zip \
"${RELEASE_ASSETS[@]}" \
--target "${STEPS_RELEASE_BRANCH_OUTPUTS_BRANCH_NAME}" \
--title "Release ${INPUTS_RELEASE_TAG}" \
--notes-start-tag "${INPUTS_PREVIOUS_TAG}" \