Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:

# Paths for various manually installed utilities. Don't try to use $HOME
# because GitHub Actions won't support it.
MAGICK_BIN: /home/runner/imagemagick/bin/magick
MAGICK_BIN: magick
MAGICK_RELEASE: 7.1.1-18
MOZJPEG_BIN: /opt/mozjpeg/bin/cjpeg
PNGQUANT_BIN: /usr/bin/pngquant
Expand Down Expand Up @@ -49,18 +49,8 @@ jobs:
# * WebPs are run through `cbwebp` (which comes from the webp package)
# by ImageMagick.
#
- name: Install PNGQuant + WebP
run: sudo apt-get install pngquant webp

# The copy of ImageMagick we could get from apt-get is ancient and
# doesn't handle niceties like `.heic` files, so here we get a binary
# directly. When Ubuntu is upgraded at some point in the probably-distant
# future, we can probably get rid of this.
- name: Install ImageMagick
run: |
mkdir -p $(dirname "${{ env.MAGICK_BIN }}")
curl --compressed -L -o "${{ env.MAGICK_BIN }}" https://github.com/brandur/imagemagick-builder/releases/download/${{ env.MAGICK_RELEASE }}/magick
chmod +x "${{ env.MAGICK_BIN }}"
- name: Install ImageMagick + PNGQuant + WebP
run: sudo apt-get install imagemagick pngquant webp

- name: ImageMagick format options
run: ${{ env.MAGICK_BIN }} identify -list format
Expand Down