Skip to content

Commit c6a9bfc

Browse files
committed
update workflow
1 parent 7c83bba commit c6a9bfc

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
include:
15-
- name: Linux
16-
os: ubuntu-latest
17-
# - name: macOS
18-
# os: macos-latest
15+
# - name: Linux
16+
# os: ubuntu-latest
17+
- name: macOS
18+
os: macos-latest
1919
- name: Windows
2020
os: windows-latest
2121
name: ${{ matrix.name }}
@@ -32,7 +32,16 @@ jobs:
3232
build: true
3333
test: false
3434
lint: false
35-
35+
- name: install elan (macOS)
36+
if: matrix.os == 'macos-latest'
37+
run: |
38+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/leanprover-community/mathlib4/master/scripts/install_macos.sh)"
39+
source ~/.profile
40+
- name: run lake build (macOS)
41+
if: matrix.os == 'macos-latest'
42+
run: |
43+
cd demo/server/LeanProject
44+
lake build
3645
3746
- name: install elan (Windows)
3847
if: matrix.os == 'windows-latest'
@@ -41,30 +50,17 @@ jobs:
4150
echo 1 | powershell -ExecutionPolicy Bypass -f elan-init.ps1
4251
del elan-init.ps1
4352
shell: pwsh
44-
4553
- name: add elan to PATH (Windows)
4654
if: matrix.os == 'windows-latest'
4755
run: (Resolve-Path ~/.elan/bin).Path >> $Env:GITHUB_PATH
4856
shell: pwsh
49-
5057
- name: run lake build (Windows)
5158
if: matrix.os == 'windows-latest'
5259
run: |
5360
CD demo\server\LeanProject
5461
lake build
5562
shell: pwsh
5663

57-
# - name: install elan (Windows)
58-
# if: matrix.os == 'windows-latest'
59-
# run: |
60-
# curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf > elan-init.sh
61-
# sh elan-init.sh -y
62-
# echo "$HOME/.elan/bin" >> $GITHUB_PATH
63-
# - name: lean bui.d (Windows)
64-
# if: matrix.os == 'windows-latest'
65-
# run: |
66-
# cd demo\server\LeanProject
67-
# lake build
6864
- uses: actions/setup-node@v3
6965
- run: npm install --loglevel verbose
7066
- run: npm audit

0 commit comments

Comments
 (0)