Skip to content

fix(plugin): strip §N§ pairs at persistence, not bare digits #4

fix(plugin): strip §N§ pairs at persistence, not bare digits

fix(plugin): strip §N§ pairs at persistence, not bare digits #4

Workflow file for this run

name: Windows Build
on:
push:
branches:
- fix/issue-97-multiplying-numbers
pull_request:
branches:
- fix/issue-97-multiplying-numbers
workflow_dispatch:
jobs:
build-windows:
name: Build on Windows
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: fix/issue-97-multiplying-numbers
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
# better-sqlite3 uses node-gyp during install; Node on PATH helps native builds.
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Compile packages
run: bun run build
- name: Package OpenCode + CLI artifact
shell: pwsh
run: ./scripts/package-windows-artifact.ps1
- name: Verify artifact layout
shell: pwsh
run: |
$root = "artifact/magic-context-compiled"
$required = @(
"$root/plugin/package.json",
"$root/plugin/dist/index.js",
"$root/plugin/src/tui/index.tsx",
"$root/plugin/src/shared",
"$root/plugin/node_modules/@opencode-ai/plugin",
"$root/cli/package.json",
"$root/cli/dist/index.js",
"$root/INSTALL.md"
)
foreach ($path in $required) {
if (-not (Test-Path $path)) {
throw "Missing required artifact path: $path"
}
}
Write-Host "Artifact verification passed."
- name: Upload compiled build
uses: actions/upload-artifact@v4
with:
name: magic-context-windows-build
path: artifact/magic-context-compiled/
retention-days: 14