Skip to content

Commit 574cbb0

Browse files
committed
chore: imported CI and PR template from mono repo
1 parent 9276a6c commit 574cbb0

File tree

2 files changed

+130
-0
lines changed

2 files changed

+130
-0
lines changed

.github/pull_request_template.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Title of the PR
2+
3+
## Description
4+
5+
Please include a summary of the change. You can rely on CodeRabbitAI to fill in the details of the changes.
6+
7+
If applicable:
8+
9+
- Include a link to the issue that is fixed (Epic/Story/Task).
10+
- @mentions of any relevant people or teams.
11+
12+
## Checklist
13+
14+
- [ ] Commit messages broadly make sense and follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) format.
15+
- [ ] PR targets master/develop
16+
- [ ] New tests are added for the changes (if not, mention it in the PR description). These may include:
17+
- [ ] Unit tests,
18+
- [ ] Integration tests,
19+
- [ ] Property-Based testing,
20+
- [ ] End-to-end tests.
21+
- [ ] The new version builds and passes all tests. If not, please mention it in the PR description.
22+
- [ ] Self review of the code has been done.
23+
- [ ] Reviewer has been requested.
24+
<!-- -[ ] The contribution follows our CONTRIBUTING.md guidelines -->

.github/workflows/ci-linux.yaml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
name: ci-linux
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- "main"
8+
- "staging"
9+
10+
concurrency:
11+
group: ${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
env:
15+
LEAN_VERSION: 4.22.0
16+
Z3_VERSION: 4.13.4
17+
18+
jobs:
19+
build:
20+
runs-on:
21+
labels: ubuntu-latest
22+
23+
steps:
24+
- name: Setup Lean
25+
run: |
26+
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y
27+
echo "/home/runner/.elan/bin" >> $GITHUB_PATH
28+
chmod +x /home/runner/.elan/bin/*
29+
30+
- name: Fix Elan version
31+
run: |
32+
elan toolchain install ${{ env.LEAN_VERSION }}
33+
elan default ${{ env.LEAN_VERSION }}
34+
35+
- name: Install Z3
36+
run: |
37+
cd /home/runner/
38+
wget -q https://github.com/Z3Prover/z3/releases/download/z3-${{ env.Z3_VERSION }}/z3-${{ env.Z3_VERSION }}-x64-glibc-2.35.zip
39+
unzip -q z3-${{ env.Z3_VERSION }}-x64-glibc-2.35.zip
40+
chmod +x z3-${{ env.Z3_VERSION }}-x64-glibc-2.35.zip
41+
echo "/home/runner/z3-${{ env.Z3_VERSION }}-x64-glibc-2.35/bin" >> $GITHUB_PATH
42+
43+
- name: Tools version
44+
run: |
45+
elan --version
46+
lake --version
47+
lean --version
48+
z3 --version
49+
50+
- name: Cache Z3
51+
uses: actions/cache@v3
52+
id: z3-cache
53+
with:
54+
path: /home/runner/z3-${{ env.Z3_VERSION }}-x64-glibc-2.35/bin
55+
key: z3-${{ env.Z3_VERSION }}
56+
restore-keys: z3-
57+
58+
- name: Cache .elan
59+
uses: actions/cache@v3
60+
id: elan-cache
61+
with:
62+
path: /home/runner/.elan/bin
63+
key: elan-${{ env.LEAN_VERSION }}
64+
restore-keys: elan-
65+
66+
67+
check-packages:
68+
needs: build
69+
runs-on: ubuntu-latest-16-cores
70+
71+
steps:
72+
- uses: actions/checkout@v4
73+
74+
- name: Restore Lean
75+
uses: actions/cache@v3
76+
with:
77+
path: /home/runner/.elan/bin
78+
key: elan-${{ env.LEAN_VERSION }}
79+
restore-keys: elan-
80+
81+
- name: Restore Z3
82+
uses: actions/cache@v3
83+
with:
84+
path: /home/runner/z3-${{ env.Z3_VERSION }}-x64-glibc-2.35/bin
85+
key: z3-${{ env.Z3_VERSION }}
86+
restore-keys: z3-
87+
88+
- name: Add Lean to PATH
89+
run: |
90+
echo "/home/runner/.elan/bin" >> $GITHUB_PATH
91+
echo "/home/runner/z3-${{ env.Z3_VERSION }}-x64-glibc-2.35/bin" >> $GITHUB_PATH
92+
93+
- name: Configure Lean toolchain
94+
run: elan default ${{ env.LEAN_VERSION }}
95+
96+
- name: Tools version
97+
run: |
98+
elan --version
99+
lake --version
100+
lean --version
101+
z3 --version
102+
103+
- name: Build and Validate Project
104+
run: |
105+
lake build
106+
lake test

0 commit comments

Comments
 (0)