-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (45 loc) · 1.48 KB
/
test.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
49
50
51
52
53
name: test
on:
push:
branches: [ main ]
tags: [ v* ]
pull_request:
jobs:
build:
name: Run specs on ${{ matrix.os }} ruby ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
ruby: ['3.1', '3.0', '2.7', '2.6', '2.5', '2.4']
experimental: [false]
steps:
- uses: actions/checkout@master
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install LaTeXML on Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo snap install latexml --edge
echo "/snap/bin" >> $GITHUB_PATH
- name: Install LaTeXML on macOS
if: matrix.os == 'macos-latest'
run: |
brew install libxml2 cpanminus
env PATH=$(brew --prefix libxml2)/bin:$PATH \
cpanm --notest XML::LibXSLT LaTeXML
echo "$(brew --prefix perl)/bin" >> $GITHUB_PATH
- name: Install LaTeXML on Windows
if: matrix.os == 'windows-latest'
shell: cmd
run: |
cinst -y latexml
refreshenv
set PATH=C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;%PATH%
where latexmlmath
echo "C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin" >> %GITHUB_PATH%
- run: bundle exec rake