Skip to content

chore: use builtin MSYS2 bash in Windows CI #74

chore: use builtin MSYS2 bash in Windows CI

chore: use builtin MSYS2 bash in Windows CI #74

Workflow file for this run

name: CI
on:
push:
branches:
- master
- 'stage/**'
pull_request:
branches:
- master
jobs:
build:
name: ${{ matrix.name || 'Build' }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: ${{ matrix.shell || 'sh' }}
strategy:
matrix:
include:
- name: Ubuntu
os: ubuntu-latest
- name: MacOS
os: macos-latest
- name: Windows
os: windows-latest
shell: msys2bash {0}
# complete all jobs
fail-fast: false
steps:
- name: Install Elan
shell: bash -euo pipefail {0}
run: |
curl -sSfL https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh | sh -s -- -y --default-toolchain none
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: Checkout
uses: actions/checkout@v2
- name: Check Lean
run: lean --version
- name: Build
run: lake build
- name: Upload Build
continue-on-error: true
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}
path: build
- name: Test
run: ./test.sh