Skip to content

mini_magick: use SSIM instead of AE for compare #431

mini_magick: use SSIM instead of AE for compare

mini_magick: use SSIM instead of AE for compare #431

Workflow file for this run

name: Test with TeXLive
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ruby: ['3.2']
os: [ubuntu-22.04]
steps:
- uses: actions/checkout@v2
- name: Install TeXLive 2021 in ubuntu
if: runner.os == 'Linux'
run: |
sudo apt-get update -y -qq && sudo apt-get install -y -qq texlive-lang-japanese texlive-fonts-recommended texlive-fonts-extra texlive-luatex texlive-extra-utils texlive-latex-extra dvipng poppler-utils
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: download imagemagick
run: |
mkdir -p "${GITHUB_WORKSPACE}/test_bin"
wget https://imagemagick.org/archive/binaries/magick -o "${GITHUB_WORKSPACE}/test_bin/magick"
chmod 755 "${GITHUB_WORKSPACE}/test_bin/magick"
cp -rp "${GITHUB_WORKSPACE}/test_bin/magick" "${GITHUB_WORKSPACE}/test_bin/compare"
export PATH=${GITHUB_WORKSPACE}/test_bin:${PATH}
- name: fix ImageMagick policy.xml on Linux
if: runner.os == 'Linux'
run: sudo sed -i 's/none/read|write/g' /etc/ImageMagick-6/policy.xml
- name: use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
- name: Build and test with Rake
run: |
magick -version
compare -version
gem install bundler --no-document
bundle install --retry 3
bundle exec rake