#!/bin/bash #SBATCH --job-name=lake-build #SBATCH --partition=lean #SBATCH --time=03:00:00 #SBATCH --cpus-per-task=4 #SBATCH --mem=16G # lake build (upstream's build.yml), the sorry and axiom gates, and Comparator, 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. Logs go beside the job's output. # Measured on the production host (12-02, shoal-ns-lean:f9e8bc5b, the runner's flags): a push of main takes 29.5 min # on one core (Comparator: 450 s for NavierStokes.json, 1,037 s for Euler.json; the rest 2.5 min), 7.8 GB, 3.5 GB of # scratch. A change recompiles its importers on top: up to 1,784 modules, ~17 min at 8 CPUs for 1,302. The runner holds # 48 CPUs for every job: 4 here. set -euo pipefail BUILD_LOGS="$PWD/logs" python3 -I checks/build.py "$SS_INPUT" checks/build.json