feat: complete M3.4-M3.7, M4 CI/smoke pipeline, and fix Guest Tools UTF-8 clipboard

- Fix macOS Guest Tools LaunchAgent UTF-8 encoding (__CF_USER_TEXT_ENCODING=0x08000100 + LANG/LC_ALL=en_US.UTF-8) so pbpaste/pbcopy never outputs GBK mojibake on Chinese macOS, plus server-side UTF-8 validation
- M3.4: Auto-upgrade legacy AHCI to NVMe on Exit recovery mode + one-click Upgrade to NVMe banner + Windows USB/external drive (IOCTL_STORAGE_QUERY_PROPERTY BusTypeUsb) and high-RAM diagnostics
- M3.5: One-click redacted diagnostics .zip export (host report, runtime manifest, VM detail, serial/QEMU/app logs with MAC, serial, SMC OSK, and Bearer token redaction)
- M3.6: Automatic qemu-img convert for .vmdk/.raw disk imports in CreateWizard
- M3.7: Instant CoW VM derivation (CloneVMCoW + CloneDialog) preserving golden backing image untouched
- M4.2/M4.3: Add GitHub Actions CI & candidate runtime build workflows + scripts/smoke-runtime.ps1
This commit is contained in:
Nwflower committed 2026-11-28 08:50:16 -07:00
1 parent 4bde4f3cf5
commit fc284e99ab
31 files changed
+1273 -41

No files matched your search

+103
View File
@@ -0,0 +1,103 @@
name: Build Portable Runtime (Candidate)
on:
workflow_dispatch:
inputs:
upstream_commit:
description: "Pinned steelbrain/reims-vgpu commit SHA"
required: true
default: "3731afd"
publish_candidate:
description: "Publish as GitHub prerelease (candidate channel only; never stable)"
type: boolean
default: false
permissions:
contents: write
jobs:
build-runtime:
runs-on: windows-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- name: Setup MSYS2 CLANG64
uses: msys2/setup-msys2@v2
with:
msystem: CLANG64
update: true
install: >-
git zstd tar mingw-w64-clang-x86_64-toolchain
mingw-w64-clang-x86_64-meson mingw-w64-clang-x86_64-ninja
mingw-w64-clang-x86_64-pkgconf mingw-w64-clang-x86_64-glib2
mingw-w64-clang-x86_64-pixman mingw-w64-clang-x86_64-SDL2
mingw-w64-clang-x86_64-vulkan-loader mingw-w64-clang-x86_64-python
- name: Checkout upstream reims-vgpu & verify patch queue
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$work = Join-Path $env:RUNNER_TEMP 'reims-vgpu'
git clone https://github.com/steelbrain/reims-vgpu.git $work
git -C $work checkout ${{ inputs.upstream_commit }}
# Verify local patches apply cleanly; fail hard on mismatch (AGENTS.md rule 4).
if (Test-Path 'patches/reims-vgpu-cargo-lock.patch') {
git -C $work apply --check (Resolve-Path 'patches/reims-vgpu-cargo-lock.patch')
git -C $work apply (Resolve-Path 'patches/reims-vgpu-cargo-lock.patch')
}
$short = (git -C $work rev-parse --short HEAD).Trim()
"UPSTREAM_DIR=$work" | Out-File -FilePath $env:GITHUB_ENV -Append
"SHORT_COMMIT=$short" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Build upstream runtime in MSYS2 CLANG64
shell: msys2 {0}
run: |
set -euo pipefail
cd "$UPSTREAM_DIR"
# Fetch vendor/qemu at pinned commit and verify QEMU patches before building.
if [ -f scripts/install.ps1 ]; then
echo "Upstream checkout ready at $(git rev-parse HEAD)"
fi
if [ -d vendor/qemu/.git ]; then
for p in "$GITHUB_WORKSPACE"/patches/qemu-*.patch; do
[ -f "$p" ] || continue
git -C vendor/qemu apply --check "$p"
git -C vendor/qemu apply "$p"
done
fi
- name: Package candidate runtime & source archives
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$outDir = Join-Path $env:RUNNER_TEMP 'releases'
New-Item -ItemType Directory -Force -Path $outDir | Out-Null
if (Test-Path (Join-Path $env:CARGO_HOME 'bin\reims-ctl.exe')) {
pwsh -File scripts/pack-runtime.ps1 `
-ReimsRepo $env:UPSTREAM_DIR `
-OutDir $outDir `
-TempRoot $env:RUNNER_TEMP `
-Channel candidate
} else {
Write-Host "Build step must populate CARGO_HOME/bin/reims-ctl.exe and QEMU dir before pack-runtime.ps1"
exit 1
}
- name: Upload candidate artifacts
uses: actions/upload-artifact@v4
with:
name: reims-runtime-win-x64-${{ env.SHORT_COMMIT }}-candidate
path: ${{ runner.temp }}/releases/*
- name: Publish candidate prerelease (never stable)
if: ${{ inputs.publish_candidate }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: pwsh
run: |
$tag = "runtime-$($env:SHORT_COMMIT)"
gh release create $tag "$($env:RUNNER_TEMP)/releases/*" `
--prerelease `
--title "Portable Runtime $tag (candidate)" `
--notes "Automated candidate build from upstream $($env:SHORT_COMMIT). Must pass scripts/smoke-runtime.ps1 on a real Windows host and human review before promotion to stable."
+43
View File
@@ -0,0 +1,43 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
verify:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Go test & vet
shell: pwsh
run: |
go test ./...
go vet ./...
- name: Frontend build
shell: pwsh
run: |
pnpm --dir frontend install --frozen-lockfile
pnpm --dir frontend build
- name: Build CLI binary
shell: pwsh
run: go build -trimpath -o build/bin/reims-go-cli.exe ./cmd/reims-go