feat: indent-based C blocks for def
/impl
#107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: bash {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 (Unix) | |
if: matrix.os != 'windows-latest' | |
run: ./test.sh | |
- name: Setup MSYS2 (Windows) | |
if: matrix.os == 'windows-latest' | |
uses: msys2/setup-msys2@v2 | |
with: | |
path-type: inherit | |
install: mingw-w64-x86_64-clang | |
- name: Test (Windows) | |
if: matrix.os == 'windows-latest' | |
shell: msys2 {0} | |
run: ./test.sh |