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

zat.dev/zds

atproto pds · mirror of https://tangled.org/zat.dev/zds

0
0
55 lines · 1.4 KB Raw History
# Interop lane (tools/interop/run.sh): zds, the pinned reference PDS and
# indigo's relay core against a validating PLC directory, judged by indigo's
# sync 1.1 verification, goat and a response diff. It is its own workflow so
# a red result does not hold up a deploy; see docs/testing.md#interop.
when:
  - event: ["push", "pull_request", "manual"]
    branch: "**"

engine: nixery

dependencies:
  nixpkgs:
    - bash
    - coreutils
    - util-linux
    - curl
    - git
    - gnutar
    - gnugrep
    - gnused
    - xz
    - zstd
    - python3
    - go
    # the relay core keeps its state in sqlite through cgo
    - gcc
    - nodejs_22
    - pnpm

environment:
  ZIG_GLOBAL_CACHE_DIR: /tangled/workspace/.ci-cache/global
  GOMODCACHE: /tangled/workspace/.ci-cache/go/mod
  GOCACHE: /tangled/workspace/.ci-cache/go/build
  # check/go.mod pins the Go toolchain; an older nixpkgs go fetches it
  GOTOOLCHAIN: auto

cache:
  - key: zig-interop
    hash:
      - build.zig.zon
      - tools/ci-zig.sh
      - tools/interop/check/go.sum
    fallback: true
    compression-level: 1
    when: always
    paths:
      - .ci-cache

steps:
  - name: install Zig 0.17.0
    command: tools/ci-zig.sh
  - name: fetch dependencies
    command: tools/ci-fetch.sh
  - name: interop against the reference PDS and relay
    command: PATH="$PWD/.ci-cache/zig:$PATH" tools/ci-cores.sh efficiency tools/interop/run.sh