-
Notifications
You must be signed in to change notification settings - Fork 6
67 lines (63 loc) · 2.66 KB
/
texlive.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
# Based on https://github.com/CTeX-org/ctex-kit/blob/master/.github/workflows/test.yml
name: Test codehigh in TeX Live
on: [push, pull_request]
env:
TLCurrent: https://mirrors.rit.edu/CTAN/systems/texlive/tlnet
TLHistoric: https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2021/tlnet-final
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install TeX Live
run: |
export PATH=${{github.workspace}}/tmp/texlive/bin/x86_64-linux:$PATH
wget ${{env.TLCurrent}}/install-tl-unx.tar.gz
tar -xzf install-tl-unx.tar.gz
cd install-tl-20*
./install-tl --profile ../.github/workflows/texlive.profile --repository=${{env.TLCurrent}}
echo $(cat ${{github.workspace}}/.github/workflows/texlive.package) | xargs tlmgr install
tlmgr update --self --all --no-auto-install --repository=${{env.TLCurrent}}
- name: Test codehigh with l3build
run: |
export PATH=${{github.workspace}}/tmp/texlive/bin/x86_64-linux:$PATH
l3build check --debug --halt-on-error --show-log-on-error
- name: Install pdftoppm
run:
sudo apt-get install poppler-utils
- name: Test codehigh with ppmcheckpdf
run: |
export PATH=${{github.workspace}}/tmp/texlive/bin/x86_64-linux:$PATH
texlua buildend.lua
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install TeX Live
run: |
${env:PATH} = "${{github.workspace}}\tmp\texlive\bin\windows;" + ${env:PATH}
Invoke-WebRequest -Uri ${{env.TLCurrent}}/install-tl.zip -OutFile install-tl.zip
Expand-Archive install-tl.zip -DestinationPath .
Set-Location install-tl-*
.\install-tl-windows --no-gui --profile ..\.github\workflows\texlive.profile --repository=${{env.TLCurrent}}
${{github.workspace}}/.github/workflows/texlive.bat
tlmgr update --self --all --no-auto-install --repository=${{env.TLCurrent}}
- name: Test codehigh with l3build
run: |
${env:PATH} = "${{github.workspace}}\tmp\texlive\bin\windows;" + ${env:PATH}
l3build check --debug --halt-on-error --show-log-on-error
- name: Install pdftoppm
run: |
${env:PATH} = "${{github.workspace}}\tmp\texlive\bin\windows;" + ${env:PATH}
tlmgr install wintools.windows
- name: Test codehigh with ppmcheckpdf
run: |
${env:PATH} = "${{github.workspace}}\tmp\texlive\bin\windows;" + ${env:PATH}
texlua buildend.lua
- name: Upload png and md5
uses: actions/upload-artifact@v3
with:
name: png-and-md5
path: |
testfiles/*.png
testfiles/*.md5