426e9eeabd
Benchmark Bridge Tests / benchmark (bunx @biomejs/biome check packages/lifeops-bench/src, benchmark-lint) (push) Waiting to run
Benchmark Bridge Tests / benchmark (bunx vitest run --config packages/lifeops-bench/vitest.config.ts --root packages/lifeops-bench --passWithNoTests, benchmark-tests) (push) Waiting to run
Build Agent Image / build-and-push (push) Waiting to run
Chat shell gestures / Chat shell gesture + parity e2e (push) Waiting to run
ci / test (push) Waiting to run
ci / lint-and-format (push) Waiting to run
ci / build (push) Waiting to run
ci / dev-startup (push) Waiting to run
Cloud Gateway Discord / Test (push) Waiting to run
Cloud Gateway Webhook / Test (push) Waiting to run
Cloud Tests / lint-and-types (push) Waiting to run
Cloud Tests / unit-tests (push) Waiting to run
Cloud Tests / integration-tests (push) Waiting to run
Cloud Tests / e2e-tests (push) Blocked by required conditions
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
Deploy Apps Worker (Product 2) / Determine environment (push) Waiting to run
Deploy Apps Worker (Product 2) / Deploy apps worker to apps-control host (${{ needs.determine-env.outputs.environment }}) (push) Blocked by required conditions
Deploy Eliza Provisioning Worker / Determine environment (push) Waiting to run
Deploy Eliza Provisioning Worker / Deploy worker to Hetzner host (${{ needs.determine-env.outputs.environment }} @ ${{ needs.determine-env.outputs.deployment_sha }}) (push) Blocked by required conditions
Dev Smoke / Classify changed paths (push) Waiting to run
Dev Smoke / bun run dev onboarding chat (push) Blocked by required conditions
Dev Smoke / Vite HMR dependency-level smoke (push) Blocked by required conditions
Electrobun Submodule Guard / electrobun gitlink is fetchable (push) Waiting to run
gitleaks / gitleaks (push) Waiting to run
Markdown Links / Relative Markdown Links (push) Waiting to run
Publish @elizaos/example-code / check_npm (push) Waiting to run
Publish @elizaos/example-code / publish_npm (push) Blocked by required conditions
Publish @elizaos/plugin-elizacloud / verify_version (push) Waiting to run
Publish @elizaos/plugin-elizacloud / publish_npm (push) Blocked by required conditions
Quality (Extended) / Homepage Build (PR smoke) (push) Waiting to run
Quality (Extended) / Comment-only diff guard (push) Waiting to run
Quality (Extended) / Format + Type Safety Ratchet (push) Waiting to run
Quality (Extended) / Develop Gate (secret scan + UI determinism) (push) Waiting to run
Quality (Extended) / Develop Gate (lint) (push) Waiting to run
Sandbox Live Smoke / Sandbox live smoke (push) Waiting to run
Snap Build & Test / Build Snap (amd64) (push) Waiting to run
Snap Build & Test / Build Snap (arm64) (push) Waiting to run
supply-chain / sbom (push) Waiting to run
supply-chain / vulnerability-scan (push) Waiting to run
Build, Push & Deploy to Phala Cloud / build-and-push (push) Waiting to run
Test Packaging / Validate Packaging Configs (push) Waiting to run
Test Packaging / PyPI on Python ${{ matrix.python }} (push) Waiting to run
Test Packaging / Pack & Test JS Tarballs (push) Waiting to run
Test Packaging / elizaos CLI global-install smoke (node + bun) (push) Waiting to run
UI Fixture E2E / ui-fixture-e2e (push) Waiting to run
UI Fixture E2E / fixture-e2e (push) Waiting to run
UI Story Gate / story-gate (push) Waiting to run
vault-ci / test (macos-latest) (push) Waiting to run
vault-ci / test (ubuntu-latest) (push) Waiting to run
vault-ci / test (windows-latest) (push) Waiting to run
vault-ci / app-core wiring tests (push) Waiting to run
verify-patches / verify patches/CHECKSUMS.sha256 (push) Waiting to run
Voice Benchmark Smoke / voice-emotion fixture smoke (push) Waiting to run
Voice Benchmark Smoke / voiceagentbench fixture smoke (push) Waiting to run
Voice Benchmark Smoke / voicebench-quality unit smoke (push) Waiting to run
Voice Benchmark Smoke / voicebench TypeScript unit (no audio) (push) Waiting to run
Voice Benchmark Smoke / voice bench smoke summary (push) Blocked by required conditions
Windows CI / windows ([bun run --cwd packages/app-core test bun run --cwd packages/elizaos test bun run --cwd packages/cloud/shared test], app-and-cli) (push) Waiting to run
Windows CI / windows ([bun run --cwd packages/scenario-runner test bun run --cwd packages/vault test bun run --cwd packages/security test bun run --cwd plugins/plugin-coding-tools test], framework-packages) (push) Waiting to run
Windows CI / windows ([bun run --cwd plugins/plugin-elizacloud test bun run --cwd plugins/plugin-discord test bun run --cwd plugins/plugin-anthropic test bun run --cwd plugins/plugin-openai test bun run --cwd plugins/plugin-app-control test bun run --cwd plugins/pl… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run build --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/agent --concurrency=4 node packages/scripts/run-bash-linux-only.mjs scripts/verify-riscv64-buildpaths.sh node packages/scripts/run… (push) Waiting to run
Windows CI / windows ([node packages/scripts/run-turbo.mjs run typecheck --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/cloud-shared --concurrency=4 bun run --cwd packages/core test bun run --cwd packages/shared test], core-runtime, 75) (push) Waiting to run
Test Packaging / Build & Test PyPI Package (push) Waiting to run
Voice Workbench / headless workbench (mocked backends) (push) Has been cancelled
Voice Workbench / real acoustic lane (nightly, provisioned only) (push) Has been cancelled
230 lines
8.5 KiB
YAML
230 lines
8.5 KiB
YAML
name: Windows Store Release
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
version:
|
|
description: Version string (e.g. 2.0.0-beta.0)
|
|
type: string
|
|
required: true
|
|
tag:
|
|
description: Git tag / GitHub release tag to download artifacts from
|
|
type: string
|
|
required: true
|
|
submit_to_store:
|
|
description: Submit MSIX to Windows Store via Partner Center API
|
|
type: boolean
|
|
default: true
|
|
secrets:
|
|
WINDOWS_SIGN_CERT_BASE64:
|
|
required: false
|
|
WINDOWS_SIGN_CERT_PASSWORD:
|
|
required: false
|
|
MS_TENANT_ID:
|
|
required: false
|
|
MS_CLIENT_ID:
|
|
required: false
|
|
MS_CLIENT_SECRET:
|
|
required: false
|
|
MS_APP_ID:
|
|
required: false
|
|
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: Version string (e.g. 2.0.0-beta.0)
|
|
type: string
|
|
required: true
|
|
tag:
|
|
description: Git tag / GitHub release tag to download artifacts from
|
|
type: string
|
|
required: true
|
|
submit_to_store:
|
|
description: Submit MSIX to Windows Store via Partner Center API
|
|
type: boolean
|
|
default: true
|
|
|
|
# Default to least privilege. Override per-job where needed.
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-msix:
|
|
runs-on: windows-2025
|
|
timeout-minutes: 60
|
|
outputs:
|
|
can_submit: ${{ steps.store.outputs.can_submit }}
|
|
msix_path: ${{ steps.build.outputs.msix_path }}
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
|
|
|
|
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
|
|
with:
|
|
bun-version: "canary"
|
|
|
|
- name: Check signing credentials
|
|
id: sign
|
|
shell: pwsh
|
|
run: |
|
|
if ([string]::IsNullOrEmpty("${{ secrets.WINDOWS_SIGN_CERT_BASE64 }}")) {
|
|
Write-Warning "WINDOWS_SIGN_CERT_BASE64 not set — MSIX will be built unsigned"
|
|
"can_sign=false" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
|
|
} else {
|
|
"can_sign=true" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
|
|
}
|
|
|
|
- name: Check Partner Center credentials
|
|
id: store
|
|
shell: pwsh
|
|
run: |
|
|
if ([string]::IsNullOrEmpty("${{ secrets.MS_TENANT_ID }}")) {
|
|
Write-Warning "MS_TENANT_ID not set — MSIX will be built but not submitted to Windows Store"
|
|
"can_submit=false" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
|
|
} else {
|
|
"can_submit=true" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
|
|
}
|
|
|
|
- name: Download Windows installer from release
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
shell: pwsh
|
|
run: |
|
|
New-Item -ItemType Directory -Force -Path artifacts | Out-Null
|
|
gh release download "${{ inputs.tag }}" --pattern "*windows*" --dir artifacts/ 2>&1 | Write-Host
|
|
Get-ChildItem artifacts/
|
|
|
|
- name: Decode signing cert
|
|
if: steps.sign.outputs.can_sign == 'true'
|
|
shell: pwsh
|
|
run: |
|
|
[System.Convert]::FromBase64String("${{ secrets.WINDOWS_SIGN_CERT_BASE64 }}") |
|
|
Set-Content -Path signing.pfx -AsByteStream
|
|
|
|
- name: Build MSIX
|
|
id: build
|
|
shell: pwsh
|
|
env:
|
|
WINDOWS_SIGN_CERT_BASE64: ${{ steps.sign.outputs.can_sign == 'true' && secrets.WINDOWS_SIGN_CERT_BASE64 || '' }}
|
|
WINDOWS_SIGN_CERT_PASSWORD: ${{ steps.sign.outputs.can_sign == 'true' && secrets.WINDOWS_SIGN_CERT_PASSWORD || '' }}
|
|
ELIZA_BUILD_VARIANT: store
|
|
run: |
|
|
$version = "${{ inputs.version }}"
|
|
New-Item -ItemType Directory -Force -Path dist-msix | Out-Null
|
|
|
|
& packages/app-core/packaging/msix/build-msix.ps1 `
|
|
-BuildDir artifacts `
|
|
-OutputDir dist-msix `
|
|
-Version $version
|
|
|
|
$msix = Get-ChildItem -Recurse -Filter "*.msix" | Select-Object -First 1
|
|
if (-not $msix) { Write-Error "No .msix file produced"; exit 1 }
|
|
$dest = "Eliza-$version.msix"
|
|
Copy-Item $msix.FullName $dest
|
|
"MSIX_PATH=$dest" | Out-File -FilePath $env:GITHUB_ENV -Append
|
|
"msix_path=$dest" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
|
|
Write-Host "Built: $dest ($([Math]::Round($msix.Length/1MB,1))MB)"
|
|
|
|
- name: Attach MSIX to GitHub Release
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
shell: pwsh
|
|
run: |
|
|
$tag = "${{ inputs.tag }}"
|
|
if (!(gh release view $tag 2>$null)) {
|
|
Write-Warning "No GitHub release for $tag — skipping upload"
|
|
exit 0
|
|
}
|
|
gh release upload $tag $env:MSIX_PATH --clobber
|
|
|
|
- name: Upload MSIX artifact
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
|
|
with:
|
|
name: windows-msix-${{ inputs.version }}
|
|
path: Eliza-${{ inputs.version }}.msix
|
|
retention-days: 90
|
|
if-no-files-found: warn
|
|
|
|
- name: Cleanup secrets
|
|
if: always()
|
|
shell: pwsh
|
|
run: Remove-Item -Force signing.pfx -ErrorAction SilentlyContinue
|
|
|
|
submit-to-store:
|
|
needs: [build-msix]
|
|
if: needs.build-msix.result == 'success' && inputs.submit_to_store != false && needs.build-msix.outputs.can_submit == 'true'
|
|
runs-on: windows-2025
|
|
timeout-minutes: 30
|
|
steps:
|
|
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
|
|
with:
|
|
name: windows-msix-${{ inputs.version }}
|
|
|
|
- name: Submit to Partner Center
|
|
shell: pwsh
|
|
env:
|
|
MS_TENANT_ID: ${{ secrets.MS_TENANT_ID }}
|
|
MS_CLIENT_ID: ${{ secrets.MS_CLIENT_ID }}
|
|
MS_CLIENT_SECRET: ${{ secrets.MS_CLIENT_SECRET }}
|
|
MS_APP_ID: ${{ secrets.MS_APP_ID }}
|
|
run: |
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
# Get Azure AD access token
|
|
$token = (Invoke-RestMethod `
|
|
-Uri "https://login.microsoftonline.com/$env:MS_TENANT_ID/oauth2/v2.0/token" `
|
|
-Method POST `
|
|
-Body @{
|
|
grant_type = "client_credentials"
|
|
client_id = $env:MS_CLIENT_ID
|
|
client_secret = $env:MS_CLIENT_SECRET
|
|
scope = "https://manage.devcenter.microsoft.com/.default"
|
|
}).access_token
|
|
$h = @{ Authorization = "Bearer $token"; "Content-Type" = "application/json" }
|
|
$base = "https://manage.devcenter.microsoft.com/v1.0/my/applications/$env:MS_APP_ID"
|
|
|
|
# Verify app exists
|
|
$app = Invoke-RestMethod -Uri $base -Headers $h
|
|
Write-Host "App: $($app.primaryName)"
|
|
|
|
# Delete any pending submission
|
|
try {
|
|
$subs = Invoke-RestMethod -Uri "$base/submissions" -Headers $h
|
|
if ($subs.pendingApplicationSubmission) {
|
|
$pid = $subs.pendingApplicationSubmission.id
|
|
Invoke-RestMethod -Uri "$base/submissions/$pid" -Method DELETE -Headers $h
|
|
Write-Host "Deleted pending submission: $pid"
|
|
}
|
|
} catch { Write-Host "No pending submission" }
|
|
|
|
# Create new submission
|
|
$sub = Invoke-RestMethod -Uri "$base/submissions" -Method POST -Headers $h -Body "{}"
|
|
$sid = $sub.id
|
|
$sasUrl = $sub.fileUploadUrl
|
|
Write-Host "Created submission: $sid"
|
|
|
|
# Pack MSIX into zip and upload via SAS
|
|
$msix = Get-ChildItem -Filter "*.msix" | Select-Object -First 1
|
|
Compress-Archive -Path $msix.FullName -DestinationPath submission.zip -Force
|
|
$bytes = [IO.File]::ReadAllBytes("submission.zip")
|
|
Invoke-RestMethod -Uri $sasUrl -Method PUT `
|
|
-Headers @{ "x-ms-blob-type" = "BlockBlob"; "Content-Type" = "application/zip" } `
|
|
-Body $bytes
|
|
|
|
# Update submission packages
|
|
$update = @{ applicationPackages = @(@{
|
|
fileName = $msix.Name; fileStatus = "PendingUpload"
|
|
minimumDirectXVersion = "None"; minimumSystemRam = "None"
|
|
}) } | ConvertTo-Json -Depth 5
|
|
Invoke-RestMethod -Uri "$base/submissions/$sid" -Method PUT -Headers $h -Body $update
|
|
|
|
# Commit
|
|
Invoke-RestMethod -Uri "$base/submissions/$sid/commit" -Method POST -Headers $h
|
|
Write-Host "Committed submission $sid"
|
|
Write-Host "Review: https://partner.microsoft.com/dashboard/products/$env:MS_APP_ID/submissions/$sid"
|
|
Write-Host "Note: Store review takes 1-3 business days."
|
|
|
|
- name: Cleanup
|
|
if: always()
|
|
shell: pwsh
|
|
run: Remove-Item -Force submission.zip -ErrorAction SilentlyContinue
|