Skip to content

Commit d6ebb4b

Browse files
committed
update workflow
1 parent 9243c96 commit d6ebb4b

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,27 @@ jobs:
3232
build: true
3333
test: false
3434
lint: false
35-
- name: install elan (Windows)
36-
if: matrix.os == 'windows-latest'
37-
run: |
38-
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf > elan-init.sh
39-
sh elan-init.sh -y
40-
echo "$HOME/.elan/bin" >> $GITHUB_PATH
41-
- name: lean bui.d (Windows)
35+
- name: install elan
4236
if: matrix.os == 'windows-latest'
4337
run: |
38+
curl -O --location https://raw.githubusercontent.com/leanprover/elan/master/elan-init.ps1
39+
echo 1 | powershell -ExecutionPolicy Bypass -f elan-init.ps1
40+
del elan-init.ps1
41+
(Resolve-Path ~/.elan/bin).Path >> $Env:GITHUB_PATH
4442
cd demo\server\LeanProject
4543
lake build
44+
shell: pwsh
45+
# - name: install elan (Windows)
46+
# if: matrix.os == 'windows-latest'
47+
# run: |
48+
# curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf > elan-init.sh
49+
# sh elan-init.sh -y
50+
# echo "$HOME/.elan/bin" >> $GITHUB_PATH
51+
# - name: lean bui.d (Windows)
52+
# if: matrix.os == 'windows-latest'
53+
# run: |
54+
# cd demo\server\LeanProject
55+
# lake build
4656
- uses: actions/setup-node@v3
4757
- run: npm install --loglevel verbose
4858
- run: npm audit

0 commit comments

Comments
 (0)