-
Notifications
You must be signed in to change notification settings - Fork 3
72 lines (58 loc) · 1.9 KB
/
ci-linux.yaml
File metadata and controls
72 lines (58 loc) · 1.9 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: ci-linux
permissions:
contents: read
on:
pull_request:
push:
branches: [ staging, main ]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
LEAN_VERSION: "4.24.0"
Z3_VERSION: "4.15.2"
GLIBC_Z3: "2.39"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Lean
run: |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y
echo "/home/runner/.elan/bin" >> $GITHUB_PATH
chmod +x /home/runner/.elan/bin/*
- name: Fix Elan version
run: |
elan toolchain install ${{ env.LEAN_VERSION }}
elan default ${{ env.LEAN_VERSION }}
- name: Install Z3
run: |
cd /home/runner/
wget -q https://github.com/Z3Prover/z3/releases/download/z3-${{ env.Z3_VERSION }}/z3-${{ env.Z3_VERSION }}-x64-glibc-${{ env.GLIBC_Z3 }}.zip
unzip -q z3-${{ env.Z3_VERSION }}-x64-glibc-${{ env.GLIBC_Z3 }}.zip
chmod +x z3-${{ env.Z3_VERSION }}-x64-glibc-${{ env.GLIBC_Z3 }}.zip
echo "/home/runner/z3-${{ env.Z3_VERSION }}-x64-glibc-${{ env.GLIBC_Z3 }}/bin" >> $GITHUB_PATH
- name: Tools version
run: |
elan --version
lake --version
lean --version
z3 --version
- name: Checkout repository
uses: actions/checkout@v4
- name: Build and Validate Blaster
run: make check_blaster
- name: Upload Blaster build log
if: failure()
uses: actions/upload-artifact@v4
with:
name: blaster-build
path: ./Blaster/build.log
- name: Execute and Validate Tests
run: LEAN_NUM_THREADS=5 ./scripts/check_lean_project_compilation.sh Tests
- name: Upload Tests log
if: failure()
uses: actions/upload-artifact@v4
with:
name: tests-build
path: ./Tests/build.log