Skip to content

Use 'dot -Tsvg_inline' to render diagrams #57

Use 'dot -Tsvg_inline' to render diagrams

Use 'dot -Tsvg_inline' to render diagrams #57

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Set up dependencies
run: |
sudo apt install inkscape
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io --username ikalnytskyi --password-stdin
docker run --rm --interactive --name graphviz $GRAPHVIZ_IMAGE
echo "#!/bin/sh" > /usr/local/bin/dot
echo "docker exec --interactive graphviz /usr/bin/dot $@"
chmod +x /usr/local/bin/dot
# curl --progress-bar --remote-name --output-dir $RUNNER_TEMP $GRAPHVIZ_DOWNLOAD_URL
# tar -xzf $RUNNER_TEMP/*.tar.gz --directory $RUNNER_TEMP
# pushd $RUNNER_TEMP/graphviz-*/
# ./configure --with-rsvg=yes --disable-swig
# make -j4
# sudo make install
# popd
python -m pip install --upgrade pip
python -m pip install --requirement requirements.txt
env:
GRAPHVIZ_IMAGE: ghcr.io/ikalnytskyi/dot:latest
#GRAPHVIZ_DOWNLOAD_URL: https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/11.0.0/graphviz-11.0.0.tar.gz
- name: Run Holocron
run: holocron run compile