Repository navigation
47 lines (47 loc) · 2.12 KB
/
Copy pathmacos-menu.yml
File metadata and controls
47 lines (47 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Packaged Mac menu validation
on:
workflow_dispatch:
inputs:
candidate_run:
description: Release workflow run containing the exact macos-package artifact
required: true
permissions:
contents: read
actions: read
jobs:
menu:
runs-on: macos-26
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Download exact candidate and install native launch targets
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CANDIDATE_RUN: ${{ inputs.candidate_run }}
run: |
[[ "$CANDIDATE_RUN" =~ ^[0-9]+$ ]]
for attempt in {1..24}; do
if gh run download "$CANDIDATE_RUN" --name macos-package --dir "$RUNNER_TEMP/candidate"; then break; fi
sleep 30
done
test -n "$(find "$RUNNER_TEMP/candidate" -name '*.dmg' -print -quit)"
curl --fail --location --retry 3 https://update.code.visualstudio.com/latest/darwin-arm64/stable -o "$RUNNER_TEMP/vscode.zip"
ditto -xk "$RUNNER_TEMP/vscode.zip" /Applications
curl --fail --location --retry 3 https://persistent.oaistatic.com/codex-app-prod/ChatGPT-darwin-arm64-26.930.51102.zip -o "$RUNNER_TEMP/standalone.zip"
ditto -xk "$RUNNER_TEMP/standalone.zip" /Applications
DMG=$(find "$RUNNER_TEMP/candidate" -name '*.dmg' -print -quit)
shasum -a 256 "$DMG" > "$RUNNER_TEMP/candidate-sha256.txt"
printf 'Y\n' | hdiutil attach "$DMG" -mountpoint "$RUNNER_TEMP/candidate-volume" -nobrowse
APP=$(find "$RUNNER_TEMP/candidate-volume" -maxdepth 1 -name '*.app' -print -quit)
ditto "$APP" "$RUNNER_TEMP/Multi Codex.app"
hdiutil detach "$RUNNER_TEMP/candidate-volume"
- name: Verify menu actions, close, tray Open, Dock reopen and Quit
run: python3 release/scripts/macos-menu-smoke.py "$RUNNER_TEMP/Multi Codex.app"
- uses: actions/upload-artifact@v4
if: always()
with:
name: macos-menu-evidence
path: |
${{ runner.temp }}/multi-codex-menu-evidence/
${{ runner.temp }}/candidate-sha256.txt
if-no-files-found: warn