Skip to content

Commit d3e2596

Browse files
ryan-williamsclaude
andcommitted
www.yml: install ImageMagick for the mosaic step
ubuntu-24.04 runner images dropped ImageMagick entirely — the shim's `command -v` assignment exited non-zero under `set -e` with no output. Install on demand in the workflow step; make the script's missing-binary failure loud. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent a60d7eb commit d3e2596

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/www.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ jobs:
6565
# gating on it would re-trigger forever. It still ships whenever a
6666
# PLOT screenshot changes (monthly data updates), riding the same
6767
# commit.
68-
run: bash scripts/compose-og.sh
68+
run: |
69+
# ubuntu-24.04 runner images dropped ImageMagick.
70+
command -v magick >/dev/null || command -v convert >/dev/null \
71+
|| sudo apt-get install -y -qq imagemagick
72+
bash scripts/compose-og.sh
6973
- name: Push + re-run, if screenshots changed
7074
if: github.ref == 'refs/heads/www'
7175
id: screenshots

www/scripts/compose-og.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
# Requires: ImageMagick — v7 (`magick`) or v6 (`convert`, e.g. ubuntu GHA runners)
55
set -e
66

7-
MAGICK="$(command -v magick || command -v convert)"
7+
MAGICK="$(command -v magick || command -v convert || true)"
8+
if [ -z "$MAGICK" ]; then
9+
echo "compose-og: ImageMagick not found (need \`magick\` or \`convert\`)" >&2
10+
exit 1
11+
fi
812
magick() { "$MAGICK" "$@"; }
913

1014
cd "$(dirname "$0")/.."

0 commit comments

Comments
 (0)