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 4bc6efa commit 3b80454
Showing 1 changed file with 27 additions and 34 deletions.
61 changes: 27 additions & 34 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,48 +7,41 @@ on:
pull_request:
branches: ["main"]
jobs:
# test:
# strategy:
# fail-fast: false
# matrix:
# include:
# - name: Linux
# os: ubuntu-latest
# - name: macOS
# os: macos-latest
# # - name: Windows
# # os: windows-latest
# name: ${{ matrix.name }}
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
# # uses lean standard action with all default input values
# - uses: leanprover/lean-action@v1
# with:
# lake-package-directory: "demo/server/LeanProject"
# use-mathlib-cache: false
# build: true
# test: false
# lint: false
# - uses: actions/setup-node@v3
# - run: npm install --loglevel verbose
# - run: npm audit
# continue-on-error: true
# - run: npm run test
wintest:
name: Windows
runs-on: windows-latest
test:
strategy:
fail-fast: false
matrix:
include:
- name: Linux
os: ubuntu-latest
- name: macOS
os: macos-latest
- name: Windows
os: windows-latest
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: install elan
# uses lean standard action with all default input values
- uses: leanprover/lean-action@v1
if: matrix.os != 'windows-latest'
with:
lake-package-directory: "demo/server/LeanProject"
use-mathlib-cache: false
build: true
test: false
lint: false
- 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: macos fix
if: matrix.os == 'macos-latest'
run: source ~/.profile
- uses: actions/setup-node@v3
- run: npm install --loglevel verbose
- run: npm audit
Expand Down

0 comments on commit 3b80454

Please sign in to comment.