@@ -47,25 +47,36 @@ jobs:
47
47
echo "Cache hit: ${{ steps.cache-graphviz.outputs.cache-hit }}"
48
48
if [ "${{ steps.cache-graphviz.outputs.cache-hit }}" = "true" ]; then
49
49
echo "Restoring from cache"
50
- sudo cp ~/graphviz-cache/bin/* /usr/bin/ 2>/dev/null
51
- sudo cp ~/graphviz-cache/lib/* /usr/lib/x86_64-linux-gnu/ 2>/dev/null
52
- sudo cp -r ~/graphviz-cache/share/graphviz /usr/share/ 2>/dev/null
53
- sudo ldconfig
50
+ echo "Copying binaries..."
51
+ sudo cp ~/graphviz-cache/bin/* /usr/bin/ 2>/dev/null || echo "Failed to copy binaries"
52
+ echo "Copying libraries..."
53
+ sudo cp ~/graphviz-cache/lib/* /usr/lib/x86_64-linux-gnu/ 2>/dev/null || echo "Failed to copy libraries"
54
+ echo "Copying share files..."
55
+ sudo cp -r ~/graphviz-cache/share/graphviz /usr/share/ 2>/dev/null || echo "Failed to copy share files"
56
+ echo "Running ldconfig..."
57
+ sudo ldconfig || echo "ldconfig failed"
54
58
else
55
59
echo "Installing fresh"
60
+ echo "Updating package list..."
56
61
sudo apt-get update
62
+ echo "Installing graphviz..."
57
63
sudo apt-get install -y graphviz
64
+ echo "Creating cache directories..."
58
65
mkdir -p ~/graphviz-cache/{bin,lib,share}
59
- cp /usr/bin/{dot,neato,twopi,circo,fdp,sfdp,patchwork,osage} ~/graphviz-cache/bin/ 2>/dev/null
60
- cp /usr/lib/x86_64-linux-gnu/lib{gvc,cgraph,cdt,pathplan,gvpr,lab-gamut}* ~/graphviz-cache/lib/ 2>/dev/null
61
- cp -r /usr/share/graphviz ~/graphviz-cache/share/ 2>/dev/null
66
+ echo "Caching binaries..."
67
+ cp /usr/bin/{dot,neato,twopi,circo,fdp,sfdp,patchwork,osage} ~/graphviz-cache/bin/ 2>/dev/null || echo "Some binaries not found"
68
+ echo "Caching libraries..."
69
+ cp /usr/lib/x86_64-linux-gnu/lib{gvc,cgraph,cdt,pathplan,gvpr,lab-gamut}* ~/graphviz-cache/lib/ 2>/dev/null || echo "Some libraries not found"
70
+ echo "Caching share files..."
71
+ cp -r /usr/share/graphviz ~/graphviz-cache/share/ 2>/dev/null || echo "Share files not found"
62
72
fi
63
73
echo "Testing dot command:"
64
74
if which dot; then
65
- dot -V || true
75
+ dot -V || echo "dot -V failed but dot exists"
66
76
else
67
77
echo "dot command not found"
68
78
fi
79
+ echo "Install Graphviz step completed"
69
80
70
81
- name : Run tests
71
82
run : make test
0 commit comments