feat: Nesbitt's inequality #5101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bench output summary | |
on: | |
issue_comment: | |
types: created | |
jobs: | |
Produce_bench_summary: | |
name: Post summary of benchmarking results | |
if: github.event.issue.pull_request && (startsWith(github.event.comment.body, 'Here are the [benchmark results]')) | |
runs-on: ubuntu-latest | |
steps: | |
- name: install elan | |
run: | | |
set -o pipefail | |
curl -sSfL https://github.com/leanprover/elan/releases/download/v3.1.1/elan-x86_64-unknown-linux-gnu.tar.gz | tar xz | |
./elan-init -y --default-toolchain none | |
echo "$HOME/.elan/bin" >> "${GITHUB_PATH}" | |
- uses: actions/checkout@v4 | |
with: | |
ref: master | |
sparse-checkout: | | |
scripts/bench_summary.lean | |
- name: Summarize bench output | |
run: | | |
{ | |
cat scripts/bench_summary.lean | |
printf $'run_cmd BenchAction.addBenchSummaryComment %s "leanprover-community/mathlib4"' "${PR}" | |
} | | |
lake env lean --stdin | |
env: | |
PR: ${{ github.event.issue.number }} | |
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} |