Skip to content

Commit ac54b89

Browse files
committed
windows build も lean action を使う
Fixes #942
1 parent 6966144 commit ac54b89

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

.github/workflows/ci.yml

+3-23
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,11 @@ jobs:
3131
# 念のために Windows 環境でもビルドを行う
3232
windows_build:
3333
runs-on: windows-latest
34-
# 失敗することはめったにないので PR 時にはチェックしない
35-
if: github.ref == 'refs/heads/main'
3634
steps:
3735
- name: checkout
3836
uses: actions/checkout@v4
3937

40-
- name: install elan
41-
run: |
42-
curl -O --location https://raw.githubusercontent.com/leanprover/elan/master/elan-init.ps1
43-
echo 1 | powershell -ExecutionPolicy Bypass -f elan-init.ps1
44-
del elan-init.ps1
45-
(Resolve-Path ~/.elan/bin).Path >> $Env:GITHUB_PATH
46-
shell: pwsh
47-
48-
- uses: actions/cache@v4
38+
- name: lean action
39+
uses: leanprover/lean-action@v1
4940
with:
50-
path: ./.lake
51-
key: lake-${{ runner.os }}-${{ hashFiles('lean-toolchain') }}-${{ hashFiles('lake-manifest.json') }}-${{ github.sha }}
52-
# if no cache hit, fall back to the cache with same lean-toolchain and lake-manifest.json
53-
restore-keys: lake-${{ runner.os }}-${{ hashFiles('lean-toolchain') }}-${{ hashFiles('lake-manifest.json') }}
54-
55-
- name: get mathlib cache
56-
run: lake exe cache get
57-
shell: pwsh
58-
59-
- name: run lake build
60-
run: lake build --log-level=error
61-
shell: pwsh
41+
build-args: "--log-level=error"

0 commit comments

Comments
 (0)