Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Aug 20, 2024
1 parent 7c83bba commit c6a9bfc
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
fail-fast: false
matrix:
include:
- name: Linux
os: ubuntu-latest
# - name: macOS
# os: macos-latest
# - name: Linux
# os: ubuntu-latest
- name: macOS
os: macos-latest
- name: Windows
os: windows-latest
name: ${{ matrix.name }}
Expand All @@ -32,7 +32,16 @@ jobs:
build: true
test: false
lint: false

- name: install elan (macOS)
if: matrix.os == 'macos-latest'
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/leanprover-community/mathlib4/master/scripts/install_macos.sh)"
source ~/.profile
- name: run lake build (macOS)
if: matrix.os == 'macos-latest'
run: |
cd demo/server/LeanProject
lake build
- name: install elan (Windows)
if: matrix.os == 'windows-latest'
Expand All @@ -41,30 +50,17 @@ jobs:
echo 1 | powershell -ExecutionPolicy Bypass -f elan-init.ps1
del elan-init.ps1
shell: pwsh

- name: add elan to PATH (Windows)
if: matrix.os == 'windows-latest'
run: (Resolve-Path ~/.elan/bin).Path >> $Env:GITHUB_PATH
shell: pwsh

- name: run lake build (Windows)
if: matrix.os == 'windows-latest'
run: |
CD demo\server\LeanProject
lake build
shell: pwsh

# - name: install elan (Windows)
# if: matrix.os == 'windows-latest'
# run: |
# curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf > elan-init.sh
# sh elan-init.sh -y
# echo "$HOME/.elan/bin" >> $GITHUB_PATH
# - name: lean bui.d (Windows)
# if: matrix.os == 'windows-latest'
# run: |
# cd demo\server\LeanProject
# lake build
- uses: actions/setup-node@v3
- run: npm install --loglevel verbose
- run: npm audit
Expand Down

0 comments on commit c6a9bfc

Please sign in to comment.