mirror of
https://github.com/stablyai/orca.git
synced 2026-11-18 11:54:46 +00:00
* refactor(tooling): organize test runtime and maintenance owners * test(tooling): preserve relocated runtime fixture dependency edges * refactor(tooling): preserve xterm routing owner checks * ci(tooling): include routing owner in sparse checkout * test(tooling): preserve copied workflow dependency closures * fix(tooling): normalize hashed JSON assets in release parity * fix(tooling): distinguish asset aliases from literal references * fix(tooling): frame normalized asset reference payloads * fix(tooling): normalize decoded JSON asset references * refactor(tooling): organize build, CI and release owners * fix(tooling): align moved generator and workflow path contracts * fix(tooling): update generated plugin bundle owner banners * test(tooling): create relocated mobile verifier fixture directories * test(tooling): copy headless detector dependency closure * test(tooling): align native batch policy fixtures with owner path * fix(tooling): link moved reliability command to historical evidence * fix(tooling): preserve nested sandbox owners and canonical guide source * fix(tooling): target release version owners in checkout fixture
68 lines
3.0 KiB
YAML
68 lines
3.0 KiB
YAML
name: Prepare server native prebuilds
|
|
description: Builds and smokes the current server slot, optionally restoring a validated Windows slot.
|
|
|
|
inputs:
|
|
resolve-windows-cache:
|
|
description: Resolve the exact Windows cache identity for restoration or later qualified publication.
|
|
default: 'false'
|
|
restore-windows-cache:
|
|
description: Restore the exact Windows slot when its identity is available.
|
|
default: 'false'
|
|
|
|
outputs:
|
|
cache-key:
|
|
description: Exact Windows server cache key.
|
|
value: ${{ steps.orcad-prebuild-cache-identity.outputs.key }}
|
|
cache-path:
|
|
description: Directory containing the Windows slot and its manifest.
|
|
value: ${{ steps.orcad-prebuild-cache-identity.outputs.path }}
|
|
cache-identity-outcome:
|
|
description: Whether Windows cache identity resolution succeeded.
|
|
value: ${{ steps.orcad-prebuild-cache-identity.outcome }}
|
|
cache-hit:
|
|
description: Whether the exact Windows slot was restored.
|
|
value: ${{ steps.orcad-prebuild-cache-restore.outputs.cache-hit }}
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Resolve this Windows server prebuild cache
|
|
id: orcad-prebuild-cache-identity
|
|
if: >-
|
|
inputs.resolve-windows-cache == 'true' && runner.os == 'Windows' &&
|
|
(runner.arch == 'X64' || runner.arch == 'ARM64')
|
|
continue-on-error: true
|
|
shell: bash
|
|
run: node config/scripts/orcad-distribution/prebuilds/orcad-windows-prebuild-cache.mjs --fingerprint
|
|
|
|
- name: Restore the exact Windows server prebuild
|
|
id: orcad-prebuild-cache-restore
|
|
if: >-
|
|
inputs.restore-windows-cache == 'true' &&
|
|
steps.orcad-prebuild-cache-identity.outcome == 'success' &&
|
|
steps.orcad-prebuild-cache-identity.outputs.key != ''
|
|
continue-on-error: true
|
|
uses: actions/cache/restore@v5
|
|
with:
|
|
path: ${{ steps.orcad-prebuild-cache-identity.outputs.path }}
|
|
key: ${{ steps.orcad-prebuild-cache-identity.outputs.key }}
|
|
|
|
- name: Build and smoke this runner's node-pty prebuild slot under the pinned Node
|
|
shell: bash
|
|
env:
|
|
WINDOWS_PREBUILD_CACHE_HIT: ${{ steps.orcad-prebuild-cache-restore.outputs.cache-hit }}
|
|
WINDOWS_PREBUILD_CACHE_RESTORE_OUTCOME: ${{ steps.orcad-prebuild-cache-restore.outcome }}
|
|
run: |
|
|
if [ "$RUNNER_OS" = Windows ] && [ "$WINDOWS_PREBUILD_CACHE_HIT" = true ] &&
|
|
[ "$WINDOWS_PREBUILD_CACHE_RESTORE_OUTCOME" = success ] &&
|
|
node config/scripts/orcad-distribution/prebuilds/orcad-windows-prebuild-cache.mjs --validate; then
|
|
echo 'Using the validated Windows server prebuild'
|
|
else
|
|
if [ "$RUNNER_OS" = Windows ]; then
|
|
rm -rf -- out/orcad-prebuilds
|
|
fi
|
|
pnpm build:orcad-prebuilds
|
|
fi
|
|
node config/scripts/orcad-distribution/prebuilds/build-orcad-prebuilds.mjs --require-slots "$(node config/scripts/orcad-distribution/prebuilds/build-orcad-prebuilds.mjs --print-slot)"
|
|
node config/scripts/orcad-distribution/prebuilds/build-orcad-prebuilds.mjs --smoke
|