Skip to content

Commit

Permalink
Merge pull request #34 from Peiyang-Song/main
Browse files Browse the repository at this point in the history
Set up CI
  • Loading branch information
Kaiyu Yang authored Dec 6, 2023
2 parents 82badd6 + bb05f1f commit a5cc231
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on:
push:
branches:
- main

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
name: Build
steps:
- name: Checkout project
uses: actions/checkout@v2
with:
fetch-depth: 0
- 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 script run LeanInfer/download
- name: Build tests
run: ~/.elan/bin/lake build LeanInferTests
test_external:
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-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 LeanInfer-demo
- name: Build lean4-example
run: |
cd lean4-example
~/.elan/bin/lake script run LeanInfer/download
~/.elan/bin/lake build
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/build
/lake-packages/*
/.lake

Expand Down

0 comments on commit a5cc231

Please sign in to comment.