2023-03-11 16:48:27 +00:00
|
|
|
name: std4 test build
|
2022-01-06 21:55:29 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-10-05 10:05:58 +00:00
|
|
|
branches:
|
|
|
|
- "main"
|
2022-01-06 21:55:29 +00:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-03-11 16:48:27 +00:00
|
|
|
name: std4 test build
|
2022-01-06 21:55:29 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
2022-10-05 10:05:58 +00:00
|
|
|
uses: actions/checkout@v3
|
2022-01-06 21:55:29 +00:00
|
|
|
|
|
|
|
- name: install elan
|
|
|
|
run: |
|
|
|
|
set -o pipefail
|
|
|
|
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- --default-toolchain none -y
|
|
|
|
~/.elan/bin/lean --version
|
|
|
|
echo "$HOME/.elan/bin" >> $GITHUB_PATH
|
|
|
|
|
2023-03-11 16:48:27 +00:00
|
|
|
- name: Checkout and compile std4
|
2022-01-06 21:55:29 +00:00
|
|
|
run: |
|
|
|
|
cd ../
|
2023-03-11 16:48:27 +00:00
|
|
|
git clone https://github.com/leanprover/std4
|
|
|
|
cd std4
|
2022-01-06 21:55:29 +00:00
|
|
|
lake build
|
|
|
|
|
2023-03-11 16:48:27 +00:00
|
|
|
- name: generate docs
|
2022-01-06 21:55:29 +00:00
|
|
|
run: |
|
|
|
|
cd ../
|
2023-03-11 16:48:27 +00:00
|
|
|
./doc-gen4/test_docs.sh "std4" "doc-gen4"
|