-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (61 loc) · 1.73 KB
/
check.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
test-pdflatex:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
ruby:
- '3.1'
- '3.2'
- '3.3'
name: "${{ matrix.os }} / ruby ${{ matrix.ruby }}"
runs-on: "${{ matrix.os }}"
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ matrix.ruby }}"
bundler-cache: true
- name: Setup dependencies
run: |
bundle update --bundler
bundle install
- name: Install TeX Live
if: matrix.os != 'windows-latest'
uses: zauguin/install-texlive@v3
with:
packages: >
latex-bin scheme-basic
- name: Install MiKTeX
if: matrix.os == 'windows-latest'
run: |
choco install miktex --no-progress
echo "C:\Program Files\MiKTeX\miktex\bin\x64" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
- name: Configure MiKTeX
if: matrix.os == 'windows-latest'
run: |
initexmf --admin --set-config-value=[MPM]AutoInstall=1
miktex --admin packages update-package-database
miktex --admin packages update
miktex packages update
miktex --admin packages install cm-super
miktex --admin fndb refresh
initexmf --admin --update-fndb
initexmf --admin --mklinks --force
updmap --admin
initexmf --report > miktex-report.txt
- name: ltx2any
run: |
ruby ltx2any.rb test/test.tex