Repository navigation
188 lines (176 loc) · 7.14 KB
/
Copy pathci.yml
File metadata and controls
188 lines (176 loc) · 7.14 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
name: CI
on:
workflow_dispatch:
inputs:
scope:
description: Validate everything or website publication changes only
type: choice
default: all
options: [all, site]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
linux:
if: inputs.scope != 'site'
runs-on: ubuntu-22.04
defaults:
run:
working-directory: tauri
steps:
- uses: actions/checkout@v4
- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev libgtk-layer-shell-dev \
libappindicator3-dev \
librsvg2-dev \
patchelf
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: tauri/package-lock.json
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: tauri/src-tauri
- run: npm ci
- run: npm test
- run: npm run test:release-gates
- run: npm run build:desktop
- run: cargo fmt --manifest-path src-tauri/Cargo.toml -- --check
- run: cargo test --manifest-path src-tauri/Cargo.toml
- name: Build and test the local VS Code extension
run: |
npm ci --prefix ../extension
npm --prefix ../extension run build:helper
npm --prefix ../extension test
npm --prefix ../extension run package -- --target linux-x64
- run: npm run check:secrets
macos:
if: inputs.scope != 'site'
runs-on: macos-26
env:
MACOSX_DEPLOYMENT_TARGET: "26.0"
defaults:
run:
working-directory: tauri
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: tauri/package-lock.json
- uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-darwin
- uses: Swatinem/rust-cache@v2
with:
workspaces: tauri/src-tauri
- run: npm ci
- run: npm test
- run: npm run test:release-gates
- run: npm run build:desktop
- run: cargo fmt --manifest-path src-tauri/Cargo.toml -- --check
- run: cargo test --manifest-path src-tauri/Cargo.toml
- name: Verify native close-to-tray and explicit Quit
run: |
cargo build --manifest-path src-tauri/Cargo.toml --example close-to-tray
python3 scripts/test-close-to-tray.py src-tauri/target/debug/examples/close-to-tray
- name: Install disposable native VS Code test dependency
run: |
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
- name: Exercise native Keychain and isolated VS Code startup
run: |
cargo test --manifest-path src-tauri/Cargo.toml macos_live_keychain_round_trip -- --ignored --test-threads=1
cargo test --manifest-path src-tauri/Cargo.toml macos_live_vscode_launch_is_detected -- --ignored --test-threads=1
- name: Exercise isolated CLI launch in native Terminal
run: cargo test --manifest-path src-tauri/Cargo.toml macos_live_cli_launch_is_isolated -- --ignored --test-threads=1
- name: Install official standalone desktop for native launch smoke
run: |
# Pin the official version with completed authenticated isolation evidence.
# The moving Codex.dmg URL can upgrade independently and must not expand the allowlist.
curl --fail --location --retry 3 https://persistent.oaistatic.com/codex-app-prod/ChatGPT-darwin-arm64-26.930.51102.zip -o "$RUNNER_TEMP/standalone.zip"
mkdir "$RUNNER_TEMP/standalone-volume"
ditto -xk "$RUNNER_TEMP/standalone.zip" "$RUNNER_TEMP/standalone-volume"
DESKTOP_APP=$(find "$RUNNER_TEMP/standalone-volume" -maxdepth 1 -name '*.app' -print -quit)
test -n "$DESKTOP_APP"
codesign --verify --deep --strict "$DESKTOP_APP"
ditto "$DESKTOP_APP" "/Applications/$(basename "$DESKTOP_APP")"
- name: Verify production standalone launch and restart with long private paths
run: cargo test --manifest-path src-tauri/Cargo.toml macos_live_standalone_launch_is_detected -- --ignored --test-threads=1
- run: npm run check:secrets
- run: npm run tauri -- build --bundles app,dmg --target aarch64-apple-darwin
- name: Inspect and smoke-test Apple Silicon app bundle
run: |
APP=$(find src-tauri/target/aarch64-apple-darwin/release/bundle/macos -maxdepth 1 -type d -name '*.app' -print -quit)
test -n "$APP"
EXECUTABLE=$(/usr/libexec/PlistBuddy -c 'Print :CFBundleExecutable' "$APP/Contents/Info.plist")
BINARY="$APP/Contents/MacOS/$EXECUTABLE"
test -x "$BINARY"
test -f "$APP/Contents/Resources/icon.icns"
ARCHS=$(lipo -archs "$BINARY")
[[ " $ARCHS " == *" arm64 "* ]]
[[ " $ARCHS " != *" x86_64 "* ]]
python3 scripts/macos-smoke.py "$BINARY"
- name: Upload macOS startup evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: macos-startup-evidence-${{ github.workflow }}
path: ${{ runner.temp }}/multi-codex-macos-evidence/
if-no-files-found: warn
docs-site:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-26]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: next
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: next/package-lock.json
- run: npm ci
- run: npm run build
- run: npx playwright install --with-deps chromium webkit
- run: npm test
- name: Check settings menu and layout in Chromium and WebKit
env:
SETTINGS_EVIDENCE_DIR: ${{ runner.temp }}/multi-codex-settings-evidence
run: |
npm ci --prefix ../tauri
npm run dev --prefix ../tauri -- --host 127.0.0.1 > "$RUNNER_TEMP/settings-vite.log" 2>&1 &
settings_server_pid=$!
trap 'kill "$settings_server_pid" 2>/dev/null || true' EXIT
for attempt in {1..40}; do
if curl --fail --silent http://127.0.0.1:1420/ > /dev/null; then break; fi
sleep 0.5
done
node ../tauri/scripts/settings-browser-check.cjs
- name: Upload settings browser evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: settings-browser-evidence-${{ matrix.os }}
path: ${{ runner.temp }}/multi-codex-settings-evidence/
if-no-files-found: ignore
- name: Upload browser failure evidence
if: failure()
uses: actions/upload-artifact@v4
with:
name: docs-browser-evidence-${{ matrix.os }}
path: next/test-results/
if-no-files-found: ignore