-
Notifications
You must be signed in to change notification settings - Fork 2
104 lines (93 loc) · 2.7 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
on:
push:
branches:
- main
pull_request:
name: CI
jobs:
build:
strategy:
matrix:
toolchain:
- "4.0.0"
- "4.1.0"
- "4.2.0"
- "4.3.0"
- "4.4.0"
- "4.5.0"
- "4.6.0"
- "4.7.0"
- "4.8.0"
- "4.9.0"
- "4.10.0"
- "4.11.0"
- "4.12.0"
- "4.13.0"
- "4.14.0-rc1"
- "nightly-2024-09-03"
- "nightly-2024-09-17"
- "nightly-2024-10-10"
- "nightly-2024-10-18"
- "nightly-2024-10-30"
- "nightly-2024-11-04"
platform:
- os: ubuntu-latest
installer: |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain none
# Mac runners are rare and expensive, so spot-check that the
# subprocess support seems OK but be less thorough
include:
- toolchain: "4.9.1"
platform:
os: macos-latest
installer: |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain none
- toolchain: "4.8.0"
platform:
os: macos-latest
installer: |
brew install elan-init
- toolchain: "4.3.0"
platform:
os: macos-latest
installer: |
brew install elan-init
name: Build and test (${{ matrix.platform.os }}, ${{ matrix.platform.installer}}, ${{ matrix.toolchain}})
runs-on: ${{ matrix.platform.os }}
steps:
- name: Install elan
run: |
set -o pipefail
${{ matrix.platform.installer }}
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: Which lake?
run: |
which lake
- uses: actions/checkout@v3
- name: List all files
run: |
find . -name "*.lean" -type f
- name: Select Lean version
run: |
echo "leanprover/lean4:${{ matrix.toolchain }}" > lean-toolchain
- name: Lean version
run: |
lean --version
- name: Cache .lake
uses: actions/cache@v3
with:
path: .lake
key: ${{ runner.os }}-${{ hashFiles('lake-manifest.json') }}-${{ hashFiles('lean-toolchain') }}
- name: Build the project
run: |
lake build
- name: Configure demo/test subproject
run: |
pushd demo
lake update
lake build :examples
lake build :highlighted
popd
- name: Run tests
run: |
lake exe subverso-tests