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

zat.dev/zds

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

0
0
46 lines · 1.3 KB Raw History
# The property campaigns compile all of zds in ReleaseSafe (about six minutes
# on heavypad), so they are their own workflow: they run beside ci.yml on
# main pushes and fail on their own, but do not hold up a deploy. A Debug
# build compiles faster but runs each seed about six times slower, so it is
# not quicker overall.
when:
  - event: ["push"]
    branch: main
    paths: ["src/**", "tools/**", "config/**", "scripts/**", build.zig, build.zig.zon, .tangled/workflows/campaigns.yml]
  - event: ["manual"]
    branch: "**"

engine: nixery

dependencies:
  nixpkgs:
    - bash
    - coreutils
    - util-linux
    - curl
    - git
    - gnutar
    - xz
    - zstd

environment:
  ZIG_GLOBAL_CACHE_DIR: /tangled/workspace/.ci-cache/global

cache:
  - key: zig-campaigns
    hash:
      - build.zig.zon
      - tools/ci-zig.sh
    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: property campaigns with reach checks
    command: PATH="$PWD/.ci-cache/zig:$PATH" tools/ci-cores.sh efficiency scripts/campaign run properties --out /tmp/zds-properties || { tail -n 40 /tmp/zds-properties/*.stderr.log; exit 1; }