~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
32 lines · 1.3 KB Raw History
# The store benchmark (bench/store/README.md) at sizes that show only that
# it builds and that every part runs (BENCH_SMALL), a minute or two once
# built: on a pull that changes the benchmark or the store it measures
# (crates/pds-store). Its numbers say nothing; those of
# bench/store/RESULTS.md are store-bench.yml's, when the owner asks. It
# fails only if the benchmark cannot build or run.
#
# Node, the pages' packages and both builds are kept between runs.
image: rust:1.98
runners: [runner.knotless.dev]
on:
  pull:
    base: [refs/heads/main]
    paths: [bench/store/**, .knotless/workflows/store-bench.yml, .knotless/workflows/store-bench-small.yml, crates/pds-store/**]
env:
  BENCH_SMALL: "1"
cache: [target, bench/store/target, /usr/local/cargo/registry, /usr/local/rustup, /opt/node, web/node_modules]
steps:
  - uses: chadtmiller.com/steps/node@1
    with: {version: 24.22.1}
  - 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
  # RocksDB's bindings are generated as it builds, which needs libclang.
  - name: libclang
    run: apt-get update -q && apt-get install -y -q libclang-dev
  - name: store-bench
    run: PATH=/opt/node/bin:$PATH bench/store/run.sh