Repository navigation
55 lines (48 loc) · 1.81 KB
/
Copy pathlean.yml
File metadata and controls
55 lines (48 loc) · 1.81 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
44
45
46
47
48
49
50
51
52
53
54
55
name: Solidity Spec
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: semantics-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
semantics:
runs-on: ubuntu-24.04
timeout-minutes: 45
steps:
- name: Check out revision without credentials
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install pinned Lean 4.29.0
shell: bash
run: |
set -euo pipefail
test "$(cat lean-toolchain)" = 'leanprover/lean4:v4.29.0'
task_tools="$RUNNER_TEMP/solidity-spec-tools"
mkdir -p "$task_tools/lean" evidence
(
cd "$task_tools"
curl -fL --retry 3 https://github.com/leanprover/lean4/releases/download/v4.29.0/lean-4.29.0-linux.tar.zst -o lean.tar.zst
echo '089f7e513ed3e9436d191f4986330c0b53809c86b5997f5eb7f25550c374fa48 lean.tar.zst' | sha256sum -c -
tar --zstd -xf lean.tar.zst --strip-components=1 -C lean
lean/bin/lean --version
) 2>&1 | tee evidence/toolchain.log
echo "$task_tools/lean/bin" >> "$GITHUB_PATH"
- name: Build and replay proofs
shell: bash
run: |
set -euo pipefail
make replay JOBS=4 \
THEOREM_AUDIT_OUTPUT="evidence/theorem-audit-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}" \
2>&1 | tee evidence/replay.log
- name: Retain diagnostics
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: solidity-spec-${{ github.run_id }}-${{ github.run_attempt }}
path: evidence/
if-no-files-found: warn