-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (45 loc) · 1.46 KB
/
ci.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
on:
pull_request:
workflow_dispatch:
name: CI
jobs:
build:
strategy:
matrix:
include:
- name: Linux
os: ubuntu-latest
- name: Windows
os: windows-latest
- name: macOS
os: macos-latest
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup elan toolchain on Linux or macOS
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: |
curl -O --location https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh
chmod u+x elan-init.sh
./elan-init.sh -y --default-toolchain leanprover/lean4:nightly
echo "Adding location $HOME/.elan/bin to PATH..."
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: Setup elan toolchain on Windows
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
curl -O --location https://raw.githubusercontent.com/leanprover/elan/master/elan-init.ps1
.\elan-init.ps1 -NoPrompt 1 -DefaultToolchain leanprover/lean4:nightly
echo "Adding location $HOME\.elan\bin to PATH..."
echo "$HOME\.elan\bin" >> $env:GITHUB_PATH
- name: Test elan & lean are working
run: |
elan --version
lean --version
- name: Build everything
run: |
lake build
- name: Run the test
run: |
lake exe test