Skip to content

Commit

Permalink
Add tests for LuaMetaLaTeX
Browse files Browse the repository at this point in the history
  • Loading branch information
gucci-on-fleek committed Oct 21, 2022
1 parent b4307e6 commit 193249e
Showing 1 changed file with 55 additions and 29 deletions.
84 changes: 55 additions & 29 deletions .github/workflows/build-test-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
sudo apt-get install --no-install-recommends -y
poppler-utils
xsltproc
libcurl4-openssl-dev
) & disown
# From https://github.com/zauguin/install-texlive
Expand Down Expand Up @@ -66,47 +67,72 @@ jobs:
pgfplots
tugboat
- name: Install ConTeXt LMTX
run: |
if [ ! -d ~/lmtx ]; then
mkdir ~/lmtx
cd ~/lmtx
wget http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip
unzip context-linux-64.zip
rm context-linux-64.zip
chmod +x ./install.sh
cd ~
wget "https://github.com/Witiko/markdown/releases/download/2.13.0/markdown.zip"
unzip markdown.zip
mkdir -p ~/lmtx/tex/texmf-modules
unzip markdown.tds.zip -d ~/lmtx/tex/texmf-modules
fi
cd ~/lmtx
./install.sh
# - name: Install ConTeXt LMTX
# run: |
# if [ ! -d ~/lmtx ]; then
# mkdir ~/lmtx
# cd ~/lmtx
# wget http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip
# unzip context-linux-64.zip
# rm context-linux-64.zip
# chmod +x ./install.sh

# cd ~
# wget "https://github.com/Witiko/markdown/releases/download/2.13.0/markdown.zip"
# unzip markdown.zip
# mkdir -p ~/lmtx/tex/texmf-modules
# unzip markdown.tds.zip -d ~/lmtx/tex/texmf-modules
# fi

# cd ~/lmtx
# ./install.sh

- name: Set environment variables
run: |
echo "lmtx_context=$HOME/lmtx/tex/texmf-linux-64/bin/context" >> $GITHUB_ENV
echo "tl_context=$HOME/texlive/bin/x86_64-linux/context" >> $GITHUB_ENV
echo "TEXMFHOME=$GITHUB_WORKSPACE/texmf" >> $GITHUB_ENV
- name: Build Documentation
run: |
cd "$GITHUB_WORKSPACE"
l3build doc
# - name: Build Documentation
# run: |
# cd "$GITHUB_WORKSPACE"
# l3build doc

# - name: Test the package
# run: |
# # Temporary workaround; see latex3/l3build#232
# sed -i '/TEXMFCNF/,+2d' "$(kpsewhich l3build-check.lua)"

# l3build check --show-log-on-error

- name: Test the package
- name: Install LuaMetaLaTeX
run: |
cd ~
git clone --depth 1 https://github.com/zauguin/luametalatex.git
cd luametalatex
l3build install
mktexlsr
cd ~
wget https://lmltx.typesetting.eu/installer-linux64.zip
unzip installer-linux64.zip
./installer
- name: Test with LuaMetaLaTeX
run: |
# Temporary workaround; see latex3/l3build#232
sed -i '/TEXMFCNF/,+2d' "$(kpsewhich l3build-check.lua)"
cd "$GITHUB_WORKSPACE"
cd tests/latex
sed -i 's/binary = "lualatex/binary = "luametalatex/g' build.lua
luametalatex basic.lvtext
l3build check --show-log-on-error
cd ../plain
sed -i 's/luatex/luametaplain/g' build.lua
l3build check --show-log-on-error
- name: Bundle the package
run: |
l3build bundle
# - name: Bundle the package
# run: |
# l3build bundle

- name: Archive on failure
if: failure()
Expand Down

0 comments on commit 193249e

Please sign in to comment.