Skip to content

بهبود و به روز شدن ساختارها #18

بهبود و به روز شدن ساختارها

بهبود و به روز شدن ساختارها #18

Workflow file for this run

name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
# See https://github.com/xu-cheng/latex-action/issues/32#issuecomment-626086551 for xindy fix
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v4
with:
latexmk_use_xelatex: true
root_file: main.tex
pre_compile: |
ln -sf /opt/texlive/texdir/texmf-dist/scripts/xindy/xindy.pl /opt/texlive/texdir/bin/x86_64-linuxmusl/xindy
ln -sf /opt/texlive/texdir/texmf-dist/scripts/xindy/texindy.pl /opt/texlive/texdir/bin/x86_64-linuxmusl/texindy
wget https://sourceforge.net/projects/xindy/files/xindy-source-components/2.4/xindy-kernel-3.0.tar.gz
tar xf xindy-kernel-3.0.tar.gz
cd xindy-kernel-3.0/src
apk add make
apk add clisp --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
make
cp -f xindy.mem /opt/texlive/texdir/bin/x86_64-linuxmusl/
cd ../../
# sh build.sh
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: TehranThesis
path: main.pdf