-
Notifications
You must be signed in to change notification settings - Fork 217
48 lines (45 loc) · 1.48 KB
/
ruby-tex.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 libfuse2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: use vendor's imagemagick
run: |
export PATH=${GITHUB_WORKSPACE}/vendor/imagemagick:${PATH}
chmod 755 ${GITHUB_WORKSPACE}/vendor/imagemagick/magick
ln -s ${GITHUB_WORKSPACE}/vendor/imagemagick/magick ${GITHUB_WORKSPACE}/vendor/imagemagick/compare
which compare
magick -version
compare -version
- 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: |
export PATH=${GITHUB_WORKSPACE}/vendor/imagemagick:${PATH}
gem install bundler --no-document
bundle install --retry 3
bundle exec rake