#!/bin/bash #SBATCH --job-name=lake-build #SBATCH --partition=lean #SBATCH --time=06:00:00 #SBATCH --cpus-per-task=4 #SBATCH --mem=16G # lake build (upstream's build.yml), the sorry and axiom gates on the pushed commit ($SS_INPUT), in the project's Lean # image (docker/) with no network. The approved checks/build.py and checks/build.json say what is run; the image holds # the toolchain, the dependencies and a build of the approved main, so only what the commit changed is rebuilt, in # place. build.json's "replay": "round": a push gets the commit's build as nobody, no sorry, and what its own Lean says # its theorem rests on; Comparator's export and kernel replay run once per maintainer round (the report check # `replay`). Logs go beside the job's output. # The time is for the widest change: a file a third of the project imports rebuilds 12,190 modules, about 6 core-seconds # each (the image's compile, 12-02); the median file rebuilds 148. set -euo pipefail BUILD_LOGS="$PWD/logs" python3 -I checks/build.py "$SS_INPUT" checks/build.json