feat: add a bunch of structures #22
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: | |
- '**' # matches every branch | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
name: Build | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up elan | |
run: curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y | |
- name: Build project | |
run: ~/.elan/bin/lake build | |
- name: Build tests | |
run: ~/.elan/bin/lake build Tests | |
test_external: | |
needs: build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
name: Test | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up elan | |
run: | | |
set -o pipefail | |
curl -sSfL https://github.com/leanprover/elan/releases/download/v1.4.2/elan-x86_64-unknown-linux-gnu.tar.gz | tar xz | |
./elan-init -y --default-toolchain none | |
echo "$HOME/.elan/bin" >> $GITHUB_PATH | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends libuv1-dev clang | |
sudo update-alternatives --set cc /usr/bin/clang | |
- name: Run tests | |
run: | | |
~/.elan/bin/lake exe tests |