-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: updated and added debugging calls to imagemagick installation
- Loading branch information
1 parent
7fb243f
commit e0c1a5d
Showing
1 changed file
with
22 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,29 +18,39 @@ jobs: | |
with: | ||
pandoc-version: '2.9.2.1' | ||
|
||
- name: install imagemagick | ||
# Install the latest version of ImageMagick | ||
- name: Setup ImageMagick | ||
uses: mfinelli/setup-imagemagick@v6 | ||
with: | ||
cache: true | ||
|
||
# Cache ImageMagick installation | ||
- name: Cache ImageMagick 6 | ||
version: latest # Use '6.x.x' or '7.x.x' if you want a specific version | ||
cache: true | ||
|
||
# Cache ImageMagick binaries | ||
- name: Cache Latest ImageMagick | ||
uses: actions/cache@v3 | ||
with: | ||
path: /usr/bin/identify | ||
key: ${{ runner.os }}-imagemagick6 | ||
path: /usr/bin/magick | ||
key: ${{ runner.os }}-imagemagick-latest | ||
restore-keys: | | ||
${{ runner.os }}-imagemagick6 | ||
${{ runner.os }}-imagemagick-latest | ||
# Create symlink for identify in case ImageMagick 7 is used | ||
- name: Create symlink for identify | ||
# Create symlink for identify | ||
- name: Create Symlink for identify | ||
run: | | ||
if ! [ -x "$(command -v identify)" ]; then | ||
sudo ln -s $(which magick) /usr/bin/identify | ||
fi | ||
- name: Check identify path | ||
run: magick identify -version | ||
# Debug steps | ||
- name: Check ImageMagick Version | ||
run: magick -version | ||
|
||
- name: Verify identify Command | ||
run: identify -version | ||
|
||
- name: Testing which imagemagick | ||
run: which convert | ||
|
||
|
||
- name: setup Redis | ||
uses: supercharge/[email protected] | ||
|