mirror of
https://github.com/stablyai/orca.git
synced 2026-10-30 16:47:34 +00:00
* ci: move secondary, scheduled and contract workflows to GitHub-hosted runners Public-repo standard hosted runners are free under Enterprise. Release, build, benchmark, e2e and unit workflows stay on Blacksmith. ci-xterm-cache seeds both cache stores since its PR consumer's pool is undecided. * test(pi): resolve the smoke bundle's external packages from the repo #34148 pulled zod into the commit-message planner graph; the bundle in the OS temp dir could not resolve it on any runner. * ci(unit): use four workers on the hosted four-core x64 runner --------- Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
65 lines
2.3 KiB
YAML
65 lines
2.3 KiB
YAML
name: Shared xterm dependency cache
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- '.github/workflows/ci-xterm-cache.yml'
|
|
- '.github/actions/prepare-xterm-dependencies/**'
|
|
- 'config/patches/xterm-upstream.json'
|
|
- 'config/scripts/regenerate-xterm-patches.mjs'
|
|
- 'config/scripts/xterm-patch-text.mjs'
|
|
- 'package.json'
|
|
# Refresh after Node patch releases or cache eviction without rebuilding on hits.
|
|
schedule:
|
|
- cron: '17 5 * * *'
|
|
workflow_dispatch:
|
|
permissions:
|
|
contents: read
|
|
concurrency:
|
|
group: xterm-cache-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
env:
|
|
ORCA_BACKGROUND_LAUNCH: '1'
|
|
jobs:
|
|
seed:
|
|
if: github.ref == 'refs/heads/main'
|
|
# Blacksmith and GitHub keep separate cache stores; seed the same key in both for either consumer pool.
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
runner: [blacksmith-4vcpu-ubuntu-2404-arm, ubuntu-24.04-arm]
|
|
concurrency:
|
|
group: xterm-cache-seed-${{ github.ref }}-${{ matrix.runner }}
|
|
cancel-in-progress: true
|
|
runs-on: ${{ matrix.runner }}
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version-file: package.json
|
|
check-latest: true
|
|
package-manager-cache: false
|
|
- uses: ./.github/actions/prepare-xterm-dependencies
|
|
id: cache
|
|
- name: Verify and populate dependencies
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
run: node config/scripts/regenerate-xterm-patches.mjs --check --work-dir="$RUNNER_TEMP/xterm-patch-build"
|
|
- uses: actions/cache/save@v5
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
with:
|
|
path: |
|
|
${{ runner.temp }}/xterm-patch-build/upstream/.git
|
|
${{ runner.temp }}/xterm-patch-build/upstream/node_modules
|
|
key: ${{ steps.cache.outputs.cache-key }}
|
|
- name: Preserve fallback downloads
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
uses: actions/cache/save@v5
|
|
with:
|
|
path: |
|
|
~/.npm
|
|
${{ runner.temp }}/xterm-patch-build/upstream/.git
|
|
key: xterm-upstream-${{ hashFiles('config/patches/xterm-upstream.json') }}
|