The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
ci(workflows): generalise native module staging to all platforms
Steven Enamakel7433bc75b33c
diff --git a/.github/workflows/build-desktop.yml b/.github/workflows/build-desktop.ymlindex 3e06403e7a..2fa80c4378 100644--- a/.github/workflows/build-desktop.yml+++ b/.github/workflows/build-desktop.yml@@ -367,10 +367,11 @@ jobs:"${{ steps.core-paths.outputs.sidecar_base }}"# ---- Tauri build -------------------------------------------------------- - name: Bundle pinned Windows native modules- if: matrix.settings.platform == 'windows-latest'+ # Downloaded and digest-verified here, once, so no installer fetches a+ # module at runtime. The host key follows the runner's OS/arch.+ - name: Bundle pinned native modulesshell: bash- run: node scripts/release/stage-windows-modules.mjs+ run: node scripts/release/stage-modules.mjs# Vite is invoked via tauri.conf.json's beforeBuildCommand inside# `cargo tauri build`, so all VITE_* env must be present here for thediff --git a/.github/workflows/module-bundle.yml b/.github/workflows/module-bundle.ymlindex 3168f79b65..2588d20843 100644--- a/.github/workflows/module-bundle.yml+++ b/.github/workflows/module-bundle.yml@@ -1,4 +1,4 @@-name: Windows module bundle+name: Module bundleon:pull_request:@@ -8,9 +8,9 @@ on:- "crates/openhuman-app/tauri.conf.json"- "crates/openhuman-core/src/modules/**"- "scripts/ci/self-hosted/test-module-assets.mjs"- - "scripts/__tests__/stage-windows-modules.test.mjs"+ - "scripts/__tests__/stage-modules.test.mjs"- "scripts/lib/module-pins.mjs"- - "scripts/release/stage-windows-modules.mjs"+ - "scripts/release/stage-modules.mjs"workflow_dispatch: {}permissions:@@ -18,7 +18,11 @@ permissions:jobs:stage:- runs-on: windows-latest+ strategy:+ fail-fast: false+ matrix:+ os: [windows-latest, ubuntu-22.04, macos-latest]+ runs-on: ${{ matrix.os }}timeout-minutes: 30steps:- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7@@ -26,6 +30,6 @@ jobs:with:node-version: 24.x- name: Check registry coverage- run: node --test scripts/__tests__/stage-windows-modules.test.mjs+ run: node --test scripts/__tests__/stage-modules.test.mjs- name: Download and verify every bundled release- run: node scripts/release/stage-windows-modules.mjs+ run: node scripts/release/stage-modules.mjsdiff --git a/scripts/release/package-cli-tarball.sh b/scripts/release/package-cli-tarball.shindex 6347b430d1..9f15e58bca 100755--- a/scripts/release/package-cli-tarball.sh+++ b/scripts/release/package-cli-tarball.sh@@ -27,7 +27,11 @@ trap 'rm -rf "$WORK"' EXITcp "$CORE_BIN_PATH" "$WORK/openhuman-core"cp "$TUI_BIN_PATH" "$WORK/openhuman-tui"chmod +x "$WORK/openhuman-core" "$WORK/openhuman-tui"-tar -czf "$TARBALL" -C "$WORK" openhuman-core openhuman-tui+# Pinned native modules, staged at build time and found by the core beside its+# binary. Skipped (with a loud warning) only when the host has no published key.+REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"+node "$REPO_ROOT/scripts/release/stage-modules.mjs" --output "$WORK/bundled-modules"+tar -czf "$TARBALL" -C "$WORK" openhuman-core openhuman-tui bundled-modules# openssl dgst works on both macOS and Linuxopenssl dgst -sha256 -r "$TARBALL" | awk '{print $1}' > "${TARBALL}.sha256"