From d2c642035606c60ef5731a041cea06bd91dfbc4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Basg=C3=B6ze?= Date: Thu, 17 Dec 2020 20:41:04 +0100 Subject: [PATCH] Add doxygen deploy workflow currently manually triggered --- .github/workflows/doxygen.yml | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/doxygen.yml diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml new file mode 100644 index 000000000..d7b5c9396 --- /dev/null +++ b/.github/workflows/doxygen.yml @@ -0,0 +1,47 @@ +name: Doxygen +# Builds and deploys storms doxygen documentation + +on: + # needed to trigger the workflow manually + workflow_dispatch: + +env: + BASE_IMG: "movesrwth/carl:ci-release" + STORM_GIT_URL: "${{ github.server_url }}/${{ github.repository }}.git" + STORM_BRANCH: "master" + # github runners currently have two cores + NR_JOBS: "2" + + +jobs: + + deploy: + runs-on: ubuntu-latest + steps: + - name: Init Docker + run: sudo docker run -d -it --name storm --privileged ${BASE_IMG} + + # We should not do partial updates :/ + # but we need to install some dependencies + # Surely we can find a better way to do this at some point + - name: Update base system + run: | + sudo docker exec storm apt-get update + sudo docker exec storm apt-get upgrade -qqy + - name: install dependencies + run: sudo docker exec storm apt-get install -qq -y doxygen graphviz + - name: Git clone storm + run: sudo docker exec storm git clone --depth 1 --branch $STORM_BRANCH $STORM_GIT_URL /opt/storm + - name: Run cmake + run: sudo docker exec storm bash -c "mkdir /opt/storm/build; cd /opt/storm/build; cmake .." + - name: Build doxygen + run: sudo docker exec storm bash -c "cd /opt/storm/build; make doc -j ${NR_JOBS}" + - name: Copy doxygen + run: sudo docker cp storm:/opt/storm/build/doc/html . + - name: Deploy doxygen + uses: peaceiris/actions-gh-pages@v3 + with: + deploy_key: ${{ secrets.DOC_DEPLOY_KEY }} + publish_dir: ./html + external_repository: moves-rwth/storm-doc + publish_branch: master