Canonical ordering for aac_normalise tactic in master #33
Workflow file for this run
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: Build and Deploy documentation | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build-coqdoc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v3 | |
- name: Build coqdoc | |
uses: coq-community/docker-coq-action@v1 | |
with: | |
custom_image: 'coqorg/coq:dev' | |
custom_script: | | |
{{before_install}} | |
startGroup "Build aac-tactics dependencies" | |
opam pin add -n -y -k path coq-aac-tactics . | |
opam update -y | |
opam install -y -j "$(nproc)" coq-aac-tactics --deps-only | |
endGroup | |
startGroup "Add permissions" | |
sudo chown -R coq:coq . | |
endGroup | |
startGroup "Build aac-tactics" | |
make -j "$(nproc)" | |
endGroup | |
startGroup "Build coqdoc" | |
make coqdoc | |
endGroup | |
startGroup "Build ocamldoc" | |
make ocamldoc | |
endGroup | |
- name: Revert Coq user permissions | |
# to avoid a warning at cleanup time | |
if: ${{ always() }} | |
run: sudo chown -R 1001:116 . | |
- name: Copy HTML and CSS and JavaScript | |
run: | | |
mkdir public | |
cp -r resources/index.html docs/ public/ | |
- name: Deploy to GitHub pages | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
uses: crazy-max/ghaction-github-pages@v2 | |
with: | |
build_dir: public | |
jekyll: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |