Skip to content

Fix incorrect hypothesis, breaking FoA #607

Fix incorrect hypothesis, breaking FoA

Fix incorrect hypothesis, breaking FoA #607

Workflow file for this run

on:
push:
branches:
- main
jobs:
build_project:
runs-on: ubuntu-latest
name: Build project
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: checkout project
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: install elan
run: curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain leanprover/lean4:nightly-2023-08-15
- name: get cache
run: ~/.elan/bin/lake -Kenv=dev exe cache get
- name: build project
run: ~/.elan/bin/lake -Kenv=dev build ConNF
- name: build lean4checker
run: |
git clone https://github.com/leanprover/lean4checker
cd lean4checker
~/.elan/bin/lake -Kenv=dev build
- name: check environments using lean4checker
run: grep -h '^import ConNF.' ConNF/*.lean | sed 's/import //' | xargs -n 1 -P 8 ~/.elan/bin/lake -Kenv=dev env lean4checker/build/bin/lean4checker
- name: build documentation
run: ~/.elan/bin/lake -Kenv=dev build ConNF:docs
- name: copy documentation
run: cp -R build/doc docs/
- name: remove .gitignore for gh-pages
run: rm docs/.gitignore
- name: bundler deps
uses: ruby/setup-ruby@v1
with:
working-directory: docs
ruby-version: "3.0" # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: bundle website
working-directory: docs
run: JEKYLL_ENV=production bundle exec jekyll build
- name: deploy
uses: JamesIves/[email protected]
with:
SINGLE_COMMIT: true
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/_site