-
-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (41 loc) · 1.29 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
# see: https://github.com/rami3l/plfl/blob/master/.github/workflows/ci.yml
name: CI
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
jobs:
ubuntu_build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: lean action
uses: leanprover/lean-action@v1
with:
build-args: "--log-level=warning"
- name: lean action (warning as fail)
uses: leanprover/lean-action@v1
with:
build-args: "--fail-level=warning"
# Lean の更新により Windows 環境でだけビルドが壊れる可能性もあるので、
# 念のために Windows 環境でもビルドを行う
windows_build:
runs-on: windows-latest
# 失敗することはめったにないので PR 時にはチェックしない
if: github.ref == 'refs/heads/main'
steps:
- name: checkout
uses: actions/checkout@v4
- name: lean action
uses: leanprover/lean-action@v1
with:
build-args: "--log-level=error"