Repository navigation
75 lines (68 loc) · 2.68 KB
/
Copy pathwindows-portable-msix-e2e.yml
File metadata and controls
75 lines (68 loc) · 2.68 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
name: Windows portable MSIX E2E
# Exercise the portable extractor against the current official x64 and ARM64
# packages, not only synthetic ZIP fixtures. The native bundled cua_node binary
# must resolve the Computer Use modules from their logical @scope paths.
on:
pull_request:
paths:
- ".github/workflows/windows-portable-msix-e2e.yml"
- "crates/codex-win-engine/Cargo.toml"
- "Cargo.toml"
- "Cargo.lock"
- "crates/codex-win-engine/src/portable.rs"
- "crates/codex-win-engine/src/portable_command.rs"
- "crates/codex-win-engine/src/portable_launcher.rs"
- "crates/codex-win-engine/src/startup_window.rs"
- "crates/codex-win-engine/build.rs"
workflow_dispatch:
concurrency:
group: windows-portable-msix-e2e-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
real-msix:
name: real MSIX (${{ matrix.architecture }})
strategy:
fail-fast: false
matrix:
include:
- architecture: x64
runner: windows-2022
- architecture: arm64
runner: windows-11-arm
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4 # stable
- name: Run native launcher after relocating its directory
run: >-
cargo test
-p codex-win-engine
portable_launcher_survives_directory_move
-- --nocapture
- name: Download current official Codex MSIX
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
PACKAGE_ARCH: ${{ matrix.architecture }}
run: |
$destination = Join-Path $env:RUNNER_TEMP "codex-real-msix"
New-Item -ItemType Directory -Path $destination -Force | Out-Null
gh release download `
--repo Wangnov/codex-app-mirror `
--pattern "OpenAI.Codex_*_${env:PACKAGE_ARCH}__*.Msix" `
--dir $destination
$packages = @(Get-ChildItem -LiteralPath $destination -Filter "*.Msix")
if ($packages.Count -ne 1) {
throw "Expected exactly one current ${env:PACKAGE_ARCH} MSIX, found $($packages.Count)"
}
"CODEX_REAL_MSIX=$($packages[0].FullName)" | Out-File `
-FilePath $env:GITHUB_ENV -Append -Encoding utf8
Write-Host "Testing $($packages[0].Name) ($($packages[0].Length) bytes)"
- name: Extract portable payload and resolve Computer Use modules
run: >-
cargo test
-p codex-win-engine
real_msix_uses_computer_use_logical_paths
-- --ignored --nocapture