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.

51 lines
1.7 KiB

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