From ec7d7c34e8f1a7ef4da2ea37454f470b8b37094b Mon Sep 17 00:00:00 2001 From: Jiaqi Li Date: Thu, 19 Dec 2024 15:55:36 -0500 Subject: [PATCH] explicitly install imagemagick to support ubuntu-latest (>=24.04) in Github actions (#2906) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Install `imagemagick` within `Install and Build 🔧` step of Github actions Relevant issue: [#2902](https://github.com/alshedivat/al-folio/issues/2902) `convert` Command Not Found on Ubuntu 24.04 Reason: `ubuntu-latest` in Github actions is pointed to `ubuntu-24.04` now, in which `imagemagick` is no longer pre-installed. See [this](https://github.com/actions/runner-images/issues/10772). Modified files (actions) recommended by @george-gca ``` - .github/workflows/deploy.yml - .github/workflows/broken-links-site.yml - .github/workflows/axe.yml ``` --- .github/workflows/axe.yml | 1 + .github/workflows/broken-links-site.yml | 1 + .github/workflows/deploy.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/axe.yml b/.github/workflows/axe.yml index 46d117f..afa3c92 100644 --- a/.github/workflows/axe.yml +++ b/.github/workflows/axe.yml @@ -43,6 +43,7 @@ jobs: } - name: Install and Build 🔧 run: | + sudo apt-get update && sudo apt-get install -y imagemagick pip3 install --upgrade jupyter export JEKYLL_ENV=production bundle exec jekyll build diff --git a/.github/workflows/broken-links-site.yml b/.github/workflows/broken-links-site.yml index d85270f..b6b9e2d 100644 --- a/.github/workflows/broken-links-site.yml +++ b/.github/workflows/broken-links-site.yml @@ -31,6 +31,7 @@ jobs: } - name: Install and Build 🔧 run: | + sudo apt-get update && sudo apt-get install -y imagemagick pip3 install --upgrade jupyter export JEKYLL_ENV=production bundle exec jekyll build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 51a32af..1f1fc63 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -86,6 +86,7 @@ jobs: value: ${{ github.repository }} - name: Install and Build 🔧 run: | + sudo apt-get update && sudo apt-get install -y imagemagick pip3 install --upgrade nbconvert export JEKYLL_ENV=production bundle exec jekyll build