~ knotless Search/
↑↓ move↵ open⇧↵ all results

socialweb.computer/socialweb-computer-kcp

socialweb.computer: a compute market on atproto (kcp)

1 collaborator
0
0
34 lines · 1.7 KB Raw History
# knotless CI: `make check-pins` (make pins re-stages and re-pins the assets built from pinned upstream source, kcp and atirc; it
# fails when internal/versions/versions.json differs from the commit). The assets built from this repository's own commit are
# not pinned there (the build records their hashes), so a Go change under internal/ never fails it. 4 vCPU / 8 GB (binding kcp-small).
# Runs only when asked for now (owner, 2026-11-13): off on push while we iterate; release no longer waits for it.
on:
  asked:
    refs: [refs/heads/main, refs/heads/knotless-ci]
runners: [aliceoa.bsky.social]
executor: kcp-small
# stage-assets takes what it has staged before from the bucket's asset-cache/ (by pinned or source inputs, each tree
# checked against its pin) and stages only the rest; a push to main or a v* tag uploads what it staged (the sealed
# bucket key). A v* tag stages every asset cold.
secrets: [SPACES_ACCESS_KEY_ID, SPACES_SECRET_ACCESS_KEY]
env:
  SPACES_BUCKET: socialweb-computer-kcp
  SPACES_REGION: sfo3
steps:
  - name: toolchain
    run: bash scripts/knotless-ci-toolchain.sh --deno
  - name: pins
    timeout: 60
    run: |
      . /opt/ci/env
      case "$KNOTLESS_RUN_REF" in refs/tags/v*) ;; *) export ASSET_CACHE_URL=https://$SPACES_BUCKET.$SPACES_REGION.digitaloceanspaces.com/asset-cache ;; esac
      rc=0
      make check-pins BUILD_ROOT=/root/pins-build || rc=$?
      echo "asset-cache: $(sort -u /root/pins-build/cache/blobs/.new 2>/dev/null | grep -c '/\(in\|src\)-' || true) new entries"
      exit $rc
  - name: asset cache
    on: {refs: [refs/heads/main, refs/tags/v*]}
    timeout: 30
    run: |
      . /opt/ci/env
      scripts/asset-cache-upload.sh /root/pins-build/cache/blobs