-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.12 KB
/
lean_build.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
on:
push:
jobs:
# Cancels previous runs of jobs in this file.
cancel:
name: 'Cancel Previous Runs (CI)'
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]
with:
all_but_latest: true
access_token: ${{ github.token }}
# Check that the branch builds successfully.
update_lean_xyz_branch_and_build:
runs-on: ubuntu-latest
name: Update lean-x.y.z branch and build project
steps:
- name: checkout project
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: update branch
if: github.ref == 'refs/heads/master'
uses: leanprover-contrib/update-versions-action@master
- name: build project
uses: leanprover-contrib/lean-build-action@master
# Run the style linter (note that this doesn't fail the build as of now).
style_lint:
name: Lint style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: lint
run: |
./scripts/lint-style.sh