chadtmiller.com/monolith
An atproto PDS
0
0
# The server's speed against the reference's alone (spec/OPERATIONS.md,
# "Performance"), as the nightly's perf step runs it, without the scale
# run: when the owner asks, on main or on a branch (`knotless run rerun
# <repo> --ref refs/heads/<branch> --workflow perf`). Its log is each part's
# ratios to the reference's, from which harness/perf-baseline.json is set,
# raised or lowered by a pull. Asked for when nothing else runs on the
# runner, as the nightly runs it alone.
#
# Node, the harness's and the pages' packages and the build are kept
# between runs.
image: rust:1.98
runners: [runner.knotless.dev]
on:
asked: {refs: [refs/heads/*]}
cache: [target, /usr/local/cargo/registry, /usr/local/rustup, /opt/node, harness/node_modules, web/node_modules]
steps:
- uses: chadtmiller.com/steps/node@1
with: {version: 24.22.1}
- uses: chadtmiller.com/steps/npm-ci@1
with: {dir: harness}
- uses: chadtmiller.com/steps/npm-ci@1
with: {dir: web}
# The pages, which pds-server embeds.
- name: web
run: cd web && PATH=/opt/node/bin:$PATH npm run build
- name: build
run: cargo build --release -p pds
- name: perf
run: cd harness && PATH=/opt/node/bin:$PATH node perf.mjs -- ../target/release/pds serve