small changes to tex #87
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 doc | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
name: Build docs | |
runs-on: ubuntu-latest | |
# Avoid running twice the action if it's triggered by a push on a PR from a branch on the repo. | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
container: | |
image: coqorg/coq:8.19 | |
# This is a workaround a "bug" on the checkout action, | |
# see https://github.com/actions/checkout/issues/956 | |
options: --user root | |
steps: | |
- uses: actions/checkout@master | |
- name: "Run coq-community/docker-coq-action@v1 with debian:10" | |
uses: coq-community/docker-coq-action@v1 | |
with: | |
# Explanation for the permission issue: | |
# https://github.com/coq-community/docker-coq-action#permissions | |
before_script: | | |
startGroup "Workaround permission issue" | |
sudo chown -R coq:coq . # <-- | |
endGroup | |
script: | | |
startGroup "Build project" | |
opam update -y | |
./install.sh -y | |
make -j 4 pretty-timed | |
make -j 4 doc | |
dune exec benchmark > benchmark.md | |
endGroup | |
uninstall: | | |
startGroup "Clean project" | |
make clean | |
endGroup | |
- name: Upload docs | |
uses: actions/upload-artifact@master | |
with: | |
name: docs-artifact | |
path: docs | |
- name: Upload benchmark | |
uses: actions/upload-artifact@master | |
with: | |
name: benchmark | |
path: benchmark.md | |
- name: Upload build time log | |
uses: actions/upload-artifact@master | |
with: | |
name: build-time | |
path: time-of-build-pretty.log | |
- name: Revert permissions | |
# to avoid a warning at cleanup time | |
if: ${{ always() }} | |
run: sudo chown -R 1001:116 . # <-- | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/download-artifact@master | |
with: | |
name: docs-artifact | |
path: docs | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
publish_dir: docs | |
allow_empty_commit: true | |
force_orphan: true | |
enable_jekyll: true |