Commit 2026-11-11 23:02 7b1df80a
View on Github →ci: upload the declarations dump as one directory, with api.jsonl in place of decls.txt (#45710)
mathlib-ci#98 adds an API dump, api.jsonl, to dumpReasonableDecls.lean and lets the decls-diff action read directories instead of files. This PR switches mathlib4's CI over to both:
build_template.yml: run the declaration dump with the new--out-dirargument, which writesapi.jsonlandimports.jsoninto$RUNNER_TEMP/import-graph. (The existingimport_graph.dotandpr_number.txtfiles also go into that directory). The directory is checked for symlinks and other non-regular files, and for missing outputs, and then uploaded as theimport-graphartifact before getting removed. The artifact contains the same files as before, except thatapi.jsonlreplacesdecls.txt.decls-diff.yml: passes the two downloaded artifacts to the action asreference-dir/new-dirinstead of four file paths. Master artifacts are kept for 90 days, so for a while some merge bases will only havedecls.txt. The action takes their names from that file. The PR summary comment does not change: the Lean diff is computed from the same names as before. Future new fields inapi.jsonland new files in the artifact will only need a mathlib-ci change, not a change here. Prepared with Claude Code.