-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6121 from Formasitchijoh/imagemagick-failure
Fix: integrated imagemagick into github workflow and resolved build failure
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
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,6 +18,32 @@ jobs: | |
with: | ||
pandoc-version: '2.9.2.1' | ||
|
||
- name: install ImageMagick | ||
uses: mfinelli/setup-imagemagick@v6 | ||
with: | ||
cache: true | ||
|
||
# Cache ImageMagick binaries | ||
- name: Cache Latest ImageMagick | ||
uses: actions/cache@v3 | ||
with: | ||
path: /home/runner/bin/magick | ||
key: ${{ runner.os }}-imagemagick-latest | ||
restore-keys: | | ||
${{ runner.os }}-imagemagick-latest | ||
# Update PATH for ImageMagick | ||
- name: Update PATH for ImageMagick | ||
run: echo "/home/runner/bin" >> $GITHUB_PATH | ||
|
||
- name: Create symlink for identify and convert | ||
run: | | ||
for cmd in identify convert; do | ||
if ! [ -x "$(command -v $cmd)" ]; then | ||
sudo ln -s $(which magick) /usr/bin/$cmd | ||
fi | ||
done | ||
- name: setup Redis | ||
uses: supercharge/[email protected] | ||
|
||
|
@@ -91,4 +117,4 @@ jobs: | |
if-no-files-found: ignore | ||
|
||
- name: Ruby linting | ||
run: bundle exec rubocop | ||
run: bundle exec rubocop |
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