build #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
schedule: | |
- cron: 0 0 * * 0 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build TeX Live Dependencies | |
container: | |
image: texlive/texlive:latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
- name: Setup Python π | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Download TLPDB π¦ | |
run: ./download.sh https://mirrors.rit.edu/CTAN | |
- name: Update TeX Live βοΈ | |
run: | | |
mkdir -p $(kpsewhich -var-brace-value TEXMFSYSCONFIG)/web2c | |
sed -r 's/^([^#])/#! \1/' $(kpsewhich fmtutil.cnf) > $(kpsewhich -var-brace-value TEXMFSYSCONFIG)/web2c/fmtutil.cnf | |
mktexlsr | |
tlmgr update --self --all --repository=https://mirrors.rit.edu/CTAN/systems/texlive/tlnet | |
tlmgr conf | |
- name: Test π§ͺ | |
run: python -m unittest tests/file_parser_test.py | |
- name: Build π§ | |
run: python main.py | |
- name: Prepare data file π | |
run: | | |
mv data/tl-depend.json . | |
echo $(pwd) | |
git config --global --add safe.directory $(pwd) | |
git fetch -v | |
git checkout data -- | |
mv tl-depend.json data | |
- name: Deploy π | |
uses: EndBug/add-and-commit@v9 | |
with: | |
default_author: github_actions | |
add: data/tl-depend.json |