Skip to content

Commit

Permalink
Update GitHub Actions configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gucci-on-fleek committed Apr 29, 2023
1 parent 14ef6c9 commit 48928e3
Showing 1 changed file with 19 additions and 41 deletions.
60 changes: 19 additions & 41 deletions .github/workflows/build-test-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,14 @@ jobs:
- name: Generate unique ID
id: get-id
run: |
echo -n ::set-output name=id::
cat /proc/sys/kernel/random/uuid
echo "id=$(cat /proc/sys/kernel/random/uuid)" >> $GITHUB_STATE
# From https://github.com/zauguin/install-texlive
- name: Load cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/texlive
~/lmtx
key: tex-v1-${{ steps.get-id.outputs.id }}
restore-keys: tex-v1-

Expand Down Expand Up @@ -78,46 +76,26 @@ jobs:
biblatex-iso690
biber
- 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
mtxrun --generate
mtxrun --luatex --generate
- name: Install LuaMetaLaTeX
run: |
cd ~
git clone --depth 1 https://github.com/zauguin/luametalatex.git
cd luametalatex
l3build install
mktexlsr
# - 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
# cd ~
# wget https://lmltx.typesetting.eu/installer-linux64.zip
# unzip installer-linux64.zip
# ./installer

tlmgr paper letter
# tlmgr paper letter

- name: Build Documentation
run: |
Expand All @@ -127,14 +105,14 @@ jobs:
- name: Test the package
run: |
# Temporary workaround; see latex3/l3build#232
sed -i '/TEXMFCNF/,+2d' "$(kpsewhich l3build-check.lua)"
sed -i '2i if os.getenv"TEXMFCNF"==".:"then os.setenv"TEXMFCNF"end' $(type -p mtxrun).lua
l3build check --show-log-on-error
- name: Bundle the package
run: |
cd ~/luametalatex
l3build uninstall
# cd ~/luametalatex
# l3build uninstall
cd "$GITHUB_WORKSPACE"
l3build bundle
Expand Down

0 comments on commit 48928e3

Please sign in to comment.