-
Notifications
You must be signed in to change notification settings - Fork 93
54 lines (51 loc) · 1.4 KB
/
push_pr.yml
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
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Git LFS
run: |
git lfs update --force
git lfs install
- name: Set up elan
run: curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y
- name: Build project
run: ~/.elan/bin/lake build
- name: Download model
run: ~/.elan/bin/lake exe LeanCopilot/download
- name: Build tests
run: ~/.elan/bin/lake build LeanCopilotTests
test_external:
needs: build
runs-on: ubuntu-latest
name: Test external
steps:
- name: Set up elan
run: curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y
- name: Get lean4-example
run: |
git clone https://github.com/yangky11/lean4-example
cd lean4-example
git checkout LeanCopilot-demo
- name: Install Git LFS
run: |
cd lean4-example
git lfs update --force
git lfs install
- name: Build lean4-example
run: |
cd lean4-example
~/.elan/bin/lake exe LeanCopilot/download
~/.elan/bin/lake build