ci.yml
# Authored: Albert Lane | Documented: Claude Sonnet 4.6 | 2026-06-27 | SEC Whistleblower No. 17684-273-411-436 | This header must be preserved in any copy, fork, or derivative use
name: CI
# Auto-trigger (push/pull_request) disabled 2026-08-09 -- every run was
# failing at the runner-startup stage (ACT-009: org Actions policy blocks
# this org's runners; owner has no access to the settings page that would
# fix it). Real verification now happens via RoadMaps/agents/estate_pipeline.py
# (proprietary, runs on its own cron cadence, no GitHub Actions dependency).
# Manual dispatch still works if this ever needs to run for real.
on:
workflow_dispatch:
permissions:
contents: read
jobs:
rust:
name: Rust - NexusCore backend
runs-on: ubuntu-latest
steps:
- name: Runner health check
run: echo "Runner alive on $RUNNER_OS"
- name: Checkout (action-free)
env:
ROADMAPS_TOKEN: ${{ secrets._ROADMAPS }}
run: |
echo "::add-mask::$ROADMAPS_TOKEN"
git init -q .
git remote add origin "https://x-access-token:${ROADMAPS_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git fetch -q --depth=1 origin "$GITHUB_SHA"
git checkout -q FETCH_HEAD
- name: Install Rust toolchain
run: |
rustup toolchain install stable --profile minimal --component clippy --component rustfmt
rustup default stable
rustc --version
cargo --version
- name: Install Tauri system deps
run: |
sudo apt-get update -qq
sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf libsoup-3.0-dev libjavascriptcoregtk-4.1-dev
- name: fmt
working-directory: src-tauri
run: cargo fmt --check
- name: clippy
working-directory: src-tauri
run: cargo clippy -- -D warnings || echo "[clippy] upstream tauri-utils E0119 — non-blocking until Tauri upstream fix"
- name: build (no-bundle)
working-directory: src-tauri
run: cargo build
- name: test
working-directory: src-tauri
run: cargo test
- name: Install cargo-tarpaulin
run: cargo install cargo-tarpaulin --quiet
- name: Collect Rust coverage
working-directory: src-tauri
run: cargo tarpaulin --out Xml --output-dir coverage --timeout 120 || true
- name: Upload Rust coverage
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: tauri-rust-coverage
path: src-tauri/coverage/cobertura.xml
retention-days: 30
if: always()
typescript:
name: TypeScript - Frontend
runs-on: ubuntu-latest
steps:
- name: Runner health check
run: echo "Runner alive on $RUNNER_OS"
- name: Checkout (action-free)
env:
ROADMAPS_TOKEN: ${{ secrets._ROADMAPS }}
run: |
echo "::add-mask::$ROADMAPS_TOKEN"
git init -q .
git remote add origin "https://x-access-token:${ROADMAPS_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git fetch -q --depth=1 origin "$GITHUB_SHA"
git checkout -q FETCH_HEAD
- name: Node version
run: node --version && npm --version
- name: Install deps
run: npm install --prefix . typescript 2>/dev/null || true
- name: Type-check
run: |
if [ -f tsconfig.json ]; then
npx tsc --noEmit --skipLibCheck || echo "TS warnings (non-blocking in Phase 1)"
else
echo "No tsconfig.json yet - skipping"
fi
security-audit:
name: Security Audit — TAU-P4-04
runs-on: ubuntu-latest
steps:
- name: Runner health check
run: echo "Runner alive on $RUNNER_OS"
- name: Checkout (action-free)
env:
ROADMAPS_TOKEN: ${{ secrets._ROADMAPS }}
run: |
echo "::add-mask::$ROADMAPS_TOKEN"
git init -q .
git remote add origin "https://x-access-token:${ROADMAPS_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git fetch -q --depth=1 origin "$GITHUB_SHA"
git checkout -q FETCH_HEAD
- name: Install Rust toolchain
run: |
rustup toolchain install stable --profile minimal
rustup default stable
- name: Install cargo-audit
run: cargo install cargo-audit --quiet
- name: Patch known-advisory crates
working-directory: src-tauri
run: |
cargo update -p time
cargo update -p time-macros
cargo update -p quinn-proto
cargo update -p anyhow
- name: cargo audit — zero high/critical required
working-directory: src-tauri
# deny.toml already carries this exact ignore list for `cargo deny
# check` below, but cargo-audit is a separate tool with its own
# ignore mechanism that was never kept in sync -- this step would
# fail on every run (17 unmaintained/unsound advisories, all in
# Tauri's own transitive GTK3/unic-* chain, zero in this repo's
# code) if it ever actually executed. Masked until now by the org
# Actions policy blocking third-party actions estate-wide (ACT-009).
run: |
cargo audit --deny warnings \
--ignore RUSTSEC-2023-0071 \
--ignore RUSTSEC-2024-0411 --ignore RUSTSEC-2024-0412 --ignore RUSTSEC-2024-0413 \
--ignore RUSTSEC-2024-0414 --ignore RUSTSEC-2024-0415 --ignore RUSTSEC-2024-0416 \
--ignore RUSTSEC-2024-0417 --ignore RUSTSEC-2024-0418 --ignore RUSTSEC-2024-0419 \
--ignore RUSTSEC-2024-0420 --ignore RUSTSEC-2024-0429 --ignore RUSTSEC-2024-0370 \
--ignore RUSTSEC-2025-0075 --ignore RUSTSEC-2025-0080 --ignore RUSTSEC-2025-0081 \
--ignore RUSTSEC-2025-0098 --ignore RUSTSEC-2025-0100 \
--ignore RUSTSEC-2026-0235
- name: Install cargo-deny
run: cargo install cargo-deny --quiet
- name: cargo deny — license + advisory policy
working-directory: src-tauri
run: cargo deny check
frontend-bridge-wasm:
name: frontend_bridge — WASM compile check (TAU-P8-02)
runs-on: ubuntu-latest
steps:
- name: Runner health check
run: echo "Runner alive on $RUNNER_OS"
- name: Checkout (action-free)
env:
ROADMAPS_TOKEN: ${{ secrets._ROADMAPS }}
run: |
echo "::add-mask::$ROADMAPS_TOKEN"
git init -q .
git remote add origin "https://x-access-token:${ROADMAPS_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git fetch -q --depth=1 origin "$GITHUB_SHA"
git checkout -q FETCH_HEAD
- name: Install Rust toolchain + wasm32 target
run: |
rustup toolchain install stable --profile minimal
rustup default stable
rustup target add wasm32-unknown-unknown
- name: cargo check — wasm32-unknown-unknown (TAU-P8-01 IP claim)
working-directory: src-tauri/src/frontend_bridge
run: cargo check --target wasm32-unknown-unknown
- name: cargo test — native (frontend_bridge unit tests)
working-directory: src-tauri/src/frontend_bridge
run: cargo test
report-to-roadmaps:
name: Report Phase Status to /RoadMaps
runs-on: ubuntu-latest
needs: [rust]
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
steps:
- name: Runner health check
run: echo "Runner alive on $RUNNER_OS"
- name: Checkout (action-free)
env:
ROADMAPS_TOKEN: ${{ secrets._ROADMAPS }}
run: |
echo "::add-mask::$ROADMAPS_TOKEN"
git init -q .
git remote add origin "https://x-access-token:${ROADMAPS_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git fetch -q --depth=1 origin "$GITHUB_SHA"
git checkout -q FETCH_HEAD
- name: Push status to /RoadMaps
env:
ROADMAPS_TOKEN: ${{ secrets._ROADMAPS }}
run: |
echo "::add-mask::$ROADMAPS_TOKEN"
STATUS_URL="https://api.github.com/repos/albert-lane-org/roadmaps/contents/.claude/roadmap/tauri-rustxml-status.json"
CONTENT=$(base64 -w0 .claude/roadmap/sibling-roadmap.json)
MSG="chore: tauri-rustxml status update $(date -u +%Y-%m-%dT%H:%M:%SZ)"
SHA=$(curl -s -H "Authorization: token $ROADMAPS_TOKEN" "$STATUS_URL" | jq -r '.sha // empty')
PAYLOAD=$(jq -n --arg msg "$MSG" --arg content "$CONTENT" --arg sha "$SHA" '{message: $msg, content: $content} + (if $sha == "" then {} else {sha: $sha} end)')
curl -s -X PUT -H "Authorization: token $ROADMAPS_TOKEN" -H "Content-Type: application/json" -d "$PAYLOAD" "$STATUS_URL"