You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.6 KiB

  1. name: Doxygen
  2. # Builds and deploys storms doxygen documentation
  3. on:
  4. # needed to trigger the workflow manually
  5. workflow_dispatch:
  6. env:
  7. BASE_IMG: "movesrwth/carl:ci-release"
  8. STORM_GIT_URL: "${{ github.server_url }}/${{ github.repository }}.git"
  9. STORM_BRANCH: "master"
  10. # github runners currently have two cores
  11. NR_JOBS: "2"
  12. jobs:
  13. deploy:
  14. runs-on: ubuntu-latest
  15. steps:
  16. - name: Init Docker
  17. run: sudo docker run -d -it --name storm --privileged ${BASE_IMG}
  18. # We should not do partial updates :/
  19. # but we need to install some dependencies
  20. # Surely we can find a better way to do this at some point
  21. - name: Update base system
  22. run: |
  23. sudo docker exec storm apt-get update
  24. sudo docker exec storm apt-get upgrade -qqy
  25. - name: install dependencies
  26. run: sudo docker exec storm apt-get install -qq -y doxygen graphviz
  27. - name: Git clone storm
  28. run: sudo docker exec storm git clone --depth 1 --branch $STORM_BRANCH $STORM_GIT_URL /opt/storm
  29. - name: Run cmake
  30. run: sudo docker exec storm bash -c "mkdir /opt/storm/build; cd /opt/storm/build; cmake .."
  31. - name: Build doxygen
  32. run: sudo docker exec storm bash -c "cd /opt/storm/build; make doc -j ${NR_JOBS}"
  33. - name: Copy doxygen
  34. run: sudo docker cp storm:/opt/storm/build/doc/html .
  35. - name: Deploy doxygen
  36. uses: peaceiris/actions-gh-pages@v3
  37. with:
  38. deploy_key: ${{ secrets.DOC_DEPLOY_KEY }}
  39. publish_dir: ./html
  40. external_repository: moves-rwth/storm-doc
  41. publish_branch: master