From 204ea23843179bc0e303069c831b6c00ef3fc3d7 Mon Sep 17 00:00:00 2001 From: Breezebuilder Date: Thu, 27 Mar 2025 12:07:57 +1100 Subject: [PATCH] Cache and use cached ImageMagick --- .github/workflows/check-mod.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-mod.yml b/.github/workflows/check-mod.yml index 5d8356a9..fa976077 100644 --- a/.github/workflows/check-mod.yml +++ b/.github/workflows/check-mod.yml @@ -14,7 +14,15 @@ jobs: with: fetch-depth: 0 # Get full history for comparing changes - - name: Install ImageMagick + - name: Cache ImageMagick + uses: actions/cache@v3 + with: + path: /usr/bin/identify + key: imagemagick-cache-${{ runner.os }}-${{ hashFiles('**/check-mod.yml') }} + restore-keys: imagemagick-cache-${{ runner.os }}- + + - name: Install ImageMagick (if not cached) + if: steps.cache.outputs.cache-hit != 'true' run: | sudo apt-get update sudo apt-get install -y imagemagick