Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update LTG #45

Merged
merged 77 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
80eefd5
Update LTG
koppor Jan 12, 2025
b3f0b6f
Refine workflow
koppor Jan 12, 2025
abbf6bf
Update LTG
koppor Jan 12, 2025
b94b4c6
Ignore some linting errors for CHANGELOG.md
koppor Jan 12, 2025
c3b7562
Remove obsolete "git status"
koppor Jan 12, 2025
048db1c
path: 'code'
koppor Jan 12, 2025
a98a914
Add forgotten dependency
koppor Jan 12, 2025
639ded8
Fix npm caching
koppor Jan 13, 2025
2699c37
Update LTG
koppor Jan 13, 2025
43e2b2b
Update LTG
koppor Jan 13, 2025
d75da54
Update LTG
koppor Jan 13, 2025
ba04f64
Do not generate Dockerfile
koppor Jan 13, 2025
1bf25b6
Add ref to checkout
koppor Jan 13, 2025
8e9afca
Update files based on generated files by template generator
koppor Jan 13, 2025
27738eb
Update files based on generated files by template generator
koppor Jan 13, 2025
f53f5f9
Update files based on generated files by template generator
koppor Jan 13, 2025
664a274
Update files based on generated files by template generator
koppor Jan 13, 2025
48190f6
Re-add Dockerfile
koppor Jan 13, 2025
00521ca
Remove double header
koppor Jan 13, 2025
3c94c7e
Add CHANGELOG entry
koppor Jan 13, 2025
1ef09ef
Refine CHANGELOG.md entry
koppor Jan 13, 2025
057785f
Refine CHANGELOG.md
koppor Jan 13, 2025
62ab118
Update LTG
koppor Jan 13, 2025
bd2de45
Update files based on generated files by template generator
koppor Jan 13, 2025
c4a04ba
Update files based on generated files by template generator
koppor Jan 13, 2025
e41af82
Update files based on generated files by template generator
koppor Jan 13, 2025
fc8ee5c
Update files based on generated files by template generator
koppor Jan 13, 2025
eb9427f
Update LTG
koppor Jan 13, 2025
1403d80
Update files based on generated files by template generator
koppor Jan 13, 2025
2678624
Update files based on generated files by template generator
koppor Jan 13, 2025
d6e14c7
Update LTG
koppor Jan 13, 2025
3f80fe7
Update files based on generated files by template generator
koppor Jan 13, 2025
cef4435
Update files based on generated files by template generator
koppor Jan 13, 2025
f9c8e4a
Update files based on generated files by template generator
koppor Jan 13, 2025
acc5c22
Update files based on generated files by template generator
koppor Jan 13, 2025
7d056c8
Update LTG
koppor Jan 13, 2025
5b21059
Update files based on generated files by template generator
koppor Jan 13, 2025
3f0a70b
Update files based on generated files by template generator
koppor Jan 13, 2025
093d1ab
Update files based on generated files by template generator
koppor Jan 13, 2025
13a7642
Update files based on generated files by template generator
koppor Jan 13, 2025
e3d8bdd
Update LTG
koppor Jan 13, 2025
4ad7498
Update files based on generated files by template generator
koppor Jan 13, 2025
0be9e31
Update LTG
koppor Jan 13, 2025
e31c7fd
Update files based on generated files by template generator
koppor Jan 13, 2025
f3c702d
Update files based on generated files by template generator
koppor Jan 13, 2025
333b749
Update files based on generated files by template generator
koppor Jan 13, 2025
4dabb93
Update files based on generated files by template generator
koppor Jan 13, 2025
0acd510
Update LTG
koppor Jan 13, 2025
03688f6
Update LTG
koppor Jan 13, 2025
49698b6
Update LTG
koppor Jan 13, 2025
e5a3662
Fix generation of _latexmkrc
koppor Jan 13, 2025
9c08353
Fix updates
koppor Jan 13, 2025
6bd44ea
Try other update
koppor Jan 13, 2025
a7005d0
Update LTG
koppor Jan 13, 2025
5b57633
Update files based on generated files by template generator
koppor Jan 13, 2025
e61e797
Update files based on generated files by template generator
koppor Jan 13, 2025
42a2c50
Update files based on generated files by template generator
koppor Jan 13, 2025
f76ce1f
Update files based on generated files by template generator
koppor Jan 13, 2025
e99214a
Update LTG
koppor Jan 13, 2025
d7b43b0
Update LTG
koppor Jan 13, 2025
b225e93
Fix update
koppor Jan 13, 2025
4a7c74b
Update files based on generated files by template generator
koppor Jan 13, 2025
10f9b6c
Also update .github/workflows
koppor Jan 13, 2025
9681799
Update LTG
koppor Jan 13, 2025
ae723dd
Update LTG
koppor Jan 14, 2025
29daefc
Update LTG
koppor Jan 14, 2025
83c606f
Add check.yml
koppor Jan 14, 2025
6fff920
Update LTG
koppor Jan 14, 2025
1ff7c08
Update files based on generated files by template generator
koppor Jan 14, 2025
f7f7d93
Update LTG
koppor Jan 14, 2025
47fd345
Update files based on generated files by template generator
koppor Jan 14, 2025
3f41188
Update LTG
koppor Jan 14, 2025
8ae93bb
Update LTG
koppor Jan 14, 2025
88b6663
Update files based on generated files by template generator
koppor Jan 14, 2025
7103445
Create latexmkrc
koppor Jan 14, 2025
e3f734c
Update LTG
koppor Jan 14, 2025
1364b8f
Use 2025.1.4 of LTG
koppor Jan 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
429 changes: 429 additions & 0 deletions .dockerignore

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.yaml]
indent_size = 4
31 changes: 31 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: latexmk paper
on:
push:
workflow_dispatch:
concurrency:
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Install TeX Live
uses: zauguin/install-texlive@v3
with:
package_file: '${{ github.workspace }}/Texlivefile'
- name: Prepare latexmk
run: |
updmap -sys
texhash
tlmgr generate language --rebuild-sys
if [ ! -f "latexmkrc" ]; then
cp "_latexmkrc" "latexmkrc"
fi
- run: latexmk paper
- uses: actions/upload-artifact@v4
with:
name: test-result
path: |
paper.pdf
107 changes: 52 additions & 55 deletions .github/workflows/update-files.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Update Files
on:
pull_request:
push:
branches:
- update-ltg
- main
workflow_dispatch:
concurrency:
group: update-files
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
cancel-in-progress: true
jobs:
generatetex:
Expand All @@ -21,16 +22,17 @@ jobs:
examples: [true]
steps:
- name: Set up Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
path: 'code'
- uses: actions/setup-node@v3
- name: Update npm
run: npm i -g npm@latest
- run: npm i npm@latest
ref: '${{ github.event.pull_request.head.ref }}'
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: 'generator-latex-template/package-lock.json'
- name: Make generator available globally
working-directory: ${{ github.workspace }}/code/generator-latex-template
working-directory: ${{ github.workspace }}/generator-latex-template
run: |
npm install
npm link
Expand All @@ -40,15 +42,15 @@ jobs:
shell: bash
working-directory: /tmp/ltg
run: |
yo latex-template\
yo $GITHUB_WORKSPACE/generator-latex-template/generators/app/index.js \
--githubpublish\
--docker=reitzig\
--docker=iot\
--documentclass=lncs\
--papersize=a4\
--latexcompiler=pdflatex\
--latexcompiler=both\
--bibtextool=bibtex\
--overleaf=true\
--texlive=2022\
--texlive=2024\
--lang=${{ matrix.language }}\
--font=${{ matrix.font }}\
--listings=${{ matrix.listings }}\
Expand All @@ -58,7 +60,7 @@ jobs:
--examples=${{ matrix.examples }}\
--howtotext=false
env:
yeoman_test: true
yeoman_test: false
- name: Prepare files
working-directory: /tmp/ltg
run: |
Expand All @@ -71,83 +73,78 @@ jobs:

# remove files which should not be overwritten

# _latexmkrc alternates between including and excluding "--shell-escape"; we just want to keep the minted + en version of it
if [ "${{ matrix.listings }}" != "minted" ] || [ "${{ matrix.lang }}" != "en" ]; then
rm _latexmkrc
rm -r .github/workflows
fi

# the LICENSE of the repository should be kept
rm LICENSE

# _latexmkrc alternates between including and excluding "--shell-escape"; we just want to keep one version of it
rm _latexmkrc

# copy everything
cp -r * ${{ github.workspace }}/code/
# Files are ready
# Overwrite old versions in $GITHUB_WORKSPACE
cp -r * $GITHUB_WORKSPACE
cp -r .* $GITHUB_WORKSPACE

# output current status
cd ${{ github.workspace }}/code/
cd ${{ github.workspace }}
git status
git diff
- name: Commit changes
uses: EndBug/add-and-commit@v8
uses: EndBug/add-and-commit@v9
with:
message: 'Update files based on generated files by template generator'
committer_email: [email protected]
push: false
cwd: 'code'
- name: Push changes
run: |
cd code
git status
parallel --retries 10 --delay 9 ::: "git status && git pull --rebase && git push"
parallel --retries 10 --delay 9 ::: "git pull --rebase; git push"
publish:
runs-on: ubuntu-latest
needs: [generatetex]
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host
- name: Build Docker image
uses: docker/build-push-action@v4
with:
push: true
provenance: false
tags: localhost:5000/name/app:latest
- name: Set up Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: '${{ github.event.pull_request.head.ref }}'
- run: |
# ensure latest updates
git pull

cp paper-en-default-listings.tex paper.tex
cp paper-en-default-minted.tex paper-minted.tex
cp paper-en-times-listings.tex paper-newtx.tex
cp paper-en-times-minted.tex paper-minted-newtx.tex
mkdir /tmp/out

# use latexmkrc (which is disabled due to easy overleaf usage)
cp _latexmkrc latexmkrc
- name: Build paper.tex
run: docker run -v $(pwd):/work/src -v /tmp/out:/work/out localhost:5000/name/app:latest work "latexmk paper.tex"
- name: Build paper-minted.tex
run: docker run -v $(pwd):/work/src -v /tmp/out:/work/out localhost:5000/name/app:latest work "latexmk paper-minted.tex"
- name: Build paper-newtx.tex
run: docker run -v $(pwd):/work/src -v /tmp/out:/work/out localhost:5000/name/app:latest work "latexmk paper-newtx.tex"
- name: Build paper-minted-newtx.tex
run: docker run -v $(pwd):/work/src -v /tmp/out:/work/out localhost:5000/name/app:latest work "latexmk paper-minted-newtx.tex"
- name: Install TeX Live
uses: zauguin/install-texlive@v3
with:
package_file: '${{ github.workspace }}/Texlivefile'
- name: Prepare latexmk
run: |
updmap -sys
texhash
tlmgr generate language --rebuild-sys
- run: latexmk paper.tex
- run: latexmk paper-minted.tex
- run: latexmk paper-newtx.tex
- run: latexmk paper-minted-newtx.tex
- run: |
mkdir publish
cp /tmp/out/*.pdf publish/
cp *.pdf publish/
cp paper.tex publish/
cp README.md publish/
cp .github/_config.yml publish/
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: publish
path: publish/
- name: Deploy
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./publish
Expand Down
Loading
Loading