Files
deepseek-harness/.github/workflows/macos-package.yml
T

82 lines
2.8 KiB
YAML

name: Package Desktop · macOS
on:
workflow_dispatch:
inputs:
preset:
description: 'Machine preset (configured on the packaging runner)'
type: choice
options: [test, production]
default: test
required: true
build_version:
description: 'Version: auto recommended; explicit version must match the checkout product prefix'
type: string
default: auto
required: true
permissions:
contents: read
concurrency:
group: macos-desktop-package
cancel-in-progress: false
jobs:
package:
runs-on: [self-hosted, macOS, ARM64, dsh-mac-package-trial]
timeout-minutes: 180
defaults:
run:
shell: bash
env:
DSH_TELEMETRY_DISABLED: '1'
DSH_PACKAGING_PRESET: ${{ inputs.preset }}
steps:
- uses: actions/[email protected]
id: checkout
with:
persist-credentials: false
clean: true
- uses: pnpm/[email protected]
with:
dest: ${{ runner.temp }}/setup-pnpm-${{ github.run_id }}-${{ github.run_attempt }}
- uses: actions/[email protected]
with:
node-version: '24'
- name: Install locked dependencies
run: pnpm install --frozen-lockfile
- name: Validate preset and resolve build version
id: settings
env:
PACKAGE_BUILD_VERSION: ${{ inputs.build_version }}
run: node apps/desktop/scripts/prepare-macos-ci.mjs
- name: Check packaging configuration and toolchain
env:
PACKAGE_VERSION: ${{ steps.settings.outputs.version }}
run: pnpm run package:desktop:mac:arm64 --check --build-version "$PACKAGE_VERSION"
- name: Build signed and notarized installers
env:
PACKAGE_VERSION: ${{ steps.settings.outputs.version }}
run: pnpm run package:desktop:mac:arm64 --build-version "$PACKAGE_VERSION"
- name: Retain packaging diagnostics
if: always() && steps.checkout.outcome == 'success'
uses: actions/[email protected]
with:
name: macos-package-logs-${{ github.run_id }}-${{ github.run_attempt }}
include-hidden-files: true
path: apps/desktop/.desktop-build/packaging-runs/
if-no-files-found: warn
retention-days: 14
- name: Retain verified installers
if: success()
uses: actions/[email protected]
with:
name: macos-arm64-signed-${{ steps.settings.outputs.version }}-${{ github.run_id }}-${{ github.run_attempt }}
include-hidden-files: true
path: |
apps/desktop/.desktop-build/targets/mac-arm64/artifacts/*.dmg
apps/desktop/.desktop-build/targets/mac-arm64/artifacts/*.zip
if-no-files-found: error
retention-days: 14