Chore: 📝 🔧 make html to make the html documentation usi…
#13
This file contains hidden or 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
| on: | |
| push: | |
| branches-ignore: ["gh-pages"] | |
| pull_request: | |
| jobs: | |
| generate-artifacts: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set the variables for push event | |
| if: ${{ github.event_name == 'push' }} | |
| run: | | |
| branch_name=${{ github.ref_name }} | |
| short_sha=$(git rev-parse --short ${{ github.sha }}) | |
| echo "destination_dir=mathcomp-analysis_"$branch_name_$short_sha >> $GITHUB_ENV | |
| - name: Set the variables for PR event | |
| if: ${{ github.event_name == 'pull_request' }} | |
| run: | | |
| branch_name=${{ github.head_ref }} | |
| echo "destination_dir=mathcomp-analysis_$branch_name" >> $GITHUB_ENV | |
| - name: Setup Graphviz | |
| uses: ts-graphviz/setup-graphviz@v2 | |
| - name: Set-up OCaml | |
| uses: ocaml/setup-ocaml@v3 | |
| with: | |
| ocaml-compiler: 4.14 | |
| opam-repositories: | | |
| coq-released: https://coq.inria.fr/opam/released | |
| default: https://github.com/ocaml/opam-repository.git | |
| - name: Build Mathcomp Analysis | |
| run: opam install -y --deps-only . && opam exec -- make -j 4 | |
| - name: Build rocqnavi | |
| run: opam install -y rocq-navi && opam show rocq-navi | |
| - name: Generate Documents | |
| run: | | |
| mkdir -p artifact | |
| opam exec -- make html | |
| cp -r html artifact/${{ env.destination_dir }} | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ env.destination_dir }} | |
| path: artifact |