Skip to content

Commit

Permalink
add CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
goens committed Feb 28, 2024
1 parent 36dbbb4 commit 0bff386
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: build & test
on:
push:
branches:
- "main"
pull_request:
merge_group:

permissions:
contents: write

jobs:
build:
name: build and test code
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install elan
run: |
set -o pipefail
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- --default-toolchain none -y
~/.elan/bin/lean --version
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: Compile Library
run: |
lake build
- name: Run Tests
run: |
cd Lean/Egg/Tests && ./run_tests.sh

0 comments on commit 0bff386

Please sign in to comment.