-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.37 KB
/
lean_action_ci.yml
File metadata and controls
43 lines (36 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Lean CI
on:
push:
pull_request:
workflow_dispatch:
# Cancel any in-flight run for the same ref when a new push lands.
concurrency:
group: lean-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: leanprover/lean-action@v1
with:
lake-package-directory: ProofPilot
# Skip the implicit `lake build` so we can pick targets explicitly.
# The default would also build Test.lean, which intentionally fails
# because Plausible discovers the count counter-example in Error.lean.
build: false
- name: Fetch Mathlib build cache
working-directory: ProofPilot
run: lake exe cache get || true
- name: Build the executables
working-directory: ProofPilot
run: lake build sqlGenMain sqlGenError sqlGenBug2 sqlGenBug3 propRunner proofTrace
- name: Smoke-test each binary
working-directory: ProofPilot
run: |
./.lake/build/bin/sqlGenMain '.[]'
./.lake/build/bin/sqlGenError 'length'
./.lake/build/bin/sqlGenBug2 '.[] | delete(.age > 30)'
./.lake/build/bin/sqlGenBug3 '.[] | update(.age, 50, .name == "Alice")'
./.lake/build/bin/propRunner | head -c 200
lake env ./.lake/build/bin/proofTrace | head -c 200