Skip to content

Commit 03e0fbc

Browse files
committed
install deb instead of building from source
1 parent bad26bb commit 03e0fbc

File tree

1 file changed

+14
-21
lines changed

1 file changed

+14
-21
lines changed

.github/workflows/test-and-release.yml

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: 'Test & Release'
32
on: [ push, pull_request ]
43

@@ -51,16 +50,13 @@ jobs:
5150
python --version
5251
ip link show
5352
54-
# Build Graphviz 13.x
55-
sudo apt-get update
56-
sudo apt-get install -y wget build-essential libgd-dev libpango1.0-dev libsodium-dev libargon2-dev
57-
wget https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/13.1.0/graphviz-13.1.0.tar.gz
58-
tar xzf graphviz-13.1.0.tar.gz
59-
cd graphviz-13.1.0
60-
./configure --disable-perl --disable-python --disable-go --disable-java --disable-lua --disable-tcl
61-
make -j$(nproc)
62-
sudo make install
63-
cd ../ && sudo rm -rf graphviz-13.1.0
53+
# Install Graphviz 13.x
54+
wget https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/13.1.0/ubuntu_24.04_graphviz-13.1.0-cmake.deb
55+
sudo apt install ./ubuntu_24.04_graphviz-13.1.0-cmake.deb
56+
57+
# Check Graphviz version
58+
dot -V
59+
which dot
6460
6561
- name: Configure environment -- Windows
6662
if: ${{ runner.os == 'Windows' }}
@@ -100,17 +96,14 @@ jobs:
10096
python -m pip install --upgrade pip packaging setuptools wheel twine
10197
python setup.py sdist bdist_wheel
10298
103-
- name: Build Graphviz 13.x
99+
- name: Install Graphviz 13.x
104100
run: |
105-
sudo apt-get update
106-
sudo apt-get install -y wget build-essential libgd-dev libpango1.0-dev libsodium-dev libargon2-dev
107-
wget https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/13.1.0/graphviz-13.1.0.tar.gz
108-
tar xzf graphviz-13.1.0.tar.gz
109-
cd graphviz-13.1.0
110-
./configure --disable-perl --disable-python --disable-go --disable-java --disable-lua --disable-tcl
111-
make -j$(nproc)
112-
sudo make install
113-
cd ../ && sudo rm -rf graphviz-13.1.0
101+
wget https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/13.1.0/ubuntu_24.04_graphviz-13.1.0-cmake.deb
102+
sudo apt install ./ubuntu_24.04_graphviz-13.1.0-cmake.deb
103+
104+
# Check Graphviz version
105+
dot -V
106+
which dot
114107
115108
- name: Get release version
116109
run: |

0 commit comments

Comments
 (0)