#!/bin/bash #SBATCH --job-name=lake-build #SBATCH --partition=lean #SBATCH --time=01: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. A push gets the build and the gates (main: 17 s, 1 GB at 4 CPUs, # 12-02). Comparator's replay runs once per maintainer round with BUILD_REPLAY=1 ("replay": "round" in build.json): on # the production host on 12-02 it exported 4.7 GB in 4 min, nanoda took ~10 min, and Lean's kernel had run 90 min and # held 62 GB without a verdict when the run was stopped. These limits are the push's, not the replay's. # 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. set -euo pipefail BUILD_LOGS="$PWD/logs" python3 -I checks/build.py "$SS_INPUT" checks/build.json