Skip to content

Commit a2dbc5a

Browse files
committed
update workflow
1 parent d6ebb4b commit a2dbc5a

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/test.yml

+20-3
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,33 @@ jobs:
3232
build: true
3333
test: false
3434
lint: false
35-
- name: install elan
35+
36+
37+
- name: install elan (Windows)
3638
if: matrix.os == 'windows-latest'
3739
run: |
3840
curl -O --location https://raw.githubusercontent.com/leanprover/elan/master/elan-init.ps1
3941
echo 1 | powershell -ExecutionPolicy Bypass -f elan-init.ps1
4042
del elan-init.ps1
41-
(Resolve-Path ~/.elan/bin).Path >> $Env:GITHUB_PATH
42-
cd demo\server\LeanProject
43+
shell: pwsh
44+
45+
- name: add elan to PATH (Windows)
46+
if: matrix.os == 'windows-latest'
47+
run: (Resolve-Path ~/.elan/bin).Path >> $Env:GITHUB_PATH
48+
shell: pwsh
49+
50+
- name: get mathlib cache
51+
if: matrix.os == 'windows-latest'
52+
run: lake exe cache get
53+
shell: pwsh
54+
55+
- name: run lake build (Windows)
56+
if: matrix.os == 'windows-latest'
57+
run: |
58+
CD demo\server\LeanProject
4359
lake build
4460
shell: pwsh
61+
4562
# - name: install elan (Windows)
4663
# if: matrix.os == 'windows-latest'
4764
# run: |

0 commit comments

Comments
 (0)