Skip to content
pi-c Artifact [aa721d222a]
Login

Artifact [aa721d222a]

Artifact aa721d222ac7512d1784b5a867a5b7ca9349eb378e056c75ed782faa9281c260:


# pic CI on the Mac mini runner (macOS arm64): path-scoped landing checks on every landing.
# Full -dev + -rel matrix runs nightly in ci/mac-nightly.yml and ci/linux-nightly.yml.
# Fuzzing runs in parallel when QUARRY_CHANGED touches parser/network/provider/tui/core and an
# LLVM clang with libFuzzer is installed; Fil-C runs separately on hetzner-hel (tools/remote/run.sh).
on:
  landing: {}
jobs:
  test:
    timeout-minutes: 45
    steps:
      - name: environment (limits differ under launchd)
        run: |
          id; echo "TMPDIR=$TMPDIR"; ulimit -a; launchctl limit 2>/dev/null || true
      - name: suite (path-scoped dev ASan/UBSan + release smoke/amalgamation)
        run: make test-pic-ci-changed
      - name: fuzz smoke (LLVM clang only, parallel, parser/network/provider/tui/core)
        run: |
          if ! sh tools/ci-select.sh --fuzz; then
            echo "fuzz: skipped, QUARRY_CHANGED did not touch parser/network/provider/tui/core"
          elif [ -x /opt/homebrew/opt/llvm/bin/clang ]; then
            make -j4 build/pic/fuzz/fuzz_decode build/pic/fuzz/fuzz_http build/pic/fuzz/fuzz_chat build/pic/fuzz/fuzz_responses
            pids=""
            for t in fuzz-decode fuzz-http fuzz-chat fuzz-responses; do
              make "$t" FUZZ_SECONDS=20 &
              pids="$pids $!"
            done
            rc=0
            for p in $pids; do
              wait "$p" || rc=1
            done
            [ "$rc" -eq 0 ]
          else
            echo "fuzz: skipped, no LLVM clang with libFuzzer on this runner"
          fi