Skip to content

GHA: Cache libavif and webp builds for Ubuntu#9437

Open
hugovk wants to merge 1 commit intopython-pillow:mainfrom
hugovk:gha-cache-libavif-webp
Open

GHA: Cache libavif and webp builds for Ubuntu#9437
hugovk wants to merge 1 commit intopython-pillow:mainfrom
hugovk:gha-cache-libavif-webp

Conversation

@hugovk
Copy link
Member

@hugovk hugovk commented Feb 14, 2026

We already cache building libimagequant, which can save around 3 minutes of build time.

Let's do the same for libavif, saving ~9 minutes, and webp, saving ~30s.

Given 10 Ubuntu jobs, that's around 95 minutes of CI time saved per run.

Job Uncached Cached Saved
Python 3.10 13m 08s 3m 29s 9m 39s
Python 3.11 12m 55s 3m 27s 9m 28s
Python 3.12 12m 55s 3m 29s 9m 26s
Python 3.13 12m 47s 3m 32s 9m 15s
Python 3.13t 13m 18s 3m 41s 9m 37s
Python 3.14 12m 53s 3m 23s 9m 30s
Python 3.14t 12m 39s 3m 20s 9m 19s
Python 3.15 12m 51s 3m 16s 9m 35s
Python 3.15t 12m 20s 3m 10s 9m 10s
pypy3.11 16m 32s 7m 09s 9m 23s
Total 132m 18s 37m 56s 94m 22s
Average 13m 14s 3m 48s 9m 26s

@hugovk hugovk force-pushed the gha-cache-libavif-webp branch 2 times, most recently from 2c82155 to 9102620 Compare February 14, 2026 19:31

# libavif
pushd depends && sudo ./install_libavif.sh && popd
pushd depends && ./install_libavif.sh && popd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the record, this is partially reverting #9231. That was motivated by a failure in the docker-images repository, but testing it now, I think this should work fine again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants