Skip to content

Commit

Permalink
Update CI and check for modification of lni.cls (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor authored Nov 9, 2023
1 parent ba1990f commit bbc67cd
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 106 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/basic-check.yml

This file was deleted.

52 changes: 33 additions & 19 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,53 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
container:
image: reitzig/texlive-base:2023.1
options: --user root
env:
SRC_DIR: /__w/LNI/LNI

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Add x86_64-linuxmusl to PATH
run: echo "/usr/local/texlive/2023/bin/x86_64-linuxmusl" >> $GITHUB_PATH
uses: actions/checkout@v4
with:
show-progess: ''
- name: Install TeX Live
uses: zauguin/install-texlive@v3
with:
package_file: Texlivefile
- name: Generate lni.cls, *.tex, ...
run: |
pdflatex lni.dtx
pdflatex lni.dtx
pdflatex lni.dtx
- name: Check for modifications
run: |
git update-index --refresh
if ! git diff-index --quiet HEAD --; then
echo "Worktree is not clean."
git diff-index --name-status HEAD
exit 1
fi
- name: Generate mybibfile.bib
run: touch mybibfile.bib

- name: Install git
run: apk add git
- run: pdflatex lni-author-template

- name: Build examples (using build.sh)
run: /bin/entrypoint work
- run: pdflatex lni-paper-example-de
- run: biber lni-paper-example-de
- run: pdflatex lni-paper-example-de
- run: pdflatex lni-paper-example-de

- name: Upload build result
uses: actions/upload-artifact@v3
with:
name: PDFs
path: '/work/out'
path: |
'lni-author-template.pdf'
'lni-paper-example*.pdf'
- name: Prepare GH pages content
if: github.ref == 'refs/heads/main'
run: |
set -e
mkdir /tmp/gh-pages
cd /tmp/gh-pages
cp /__w/LNI/LNI/README.md index.md
cp /work/out/*.pdf .
cp README.md /tmp/gh-pages/index.md
cp *.pdf /tmp/gh-pages
- name: Deploy to GH pages
uses: peaceiris/actions-gh-pages@v3
Expand All @@ -58,7 +72,7 @@ jobs:
publish_dir: /tmp/gh-pages

- name: Install dependencies for ctanify
run: apk add perl-file-copy-recursive zip
run: sudo apt-get install -y libfile-copy-recursive-perl zip

- name: Prepare for CTAN
run: ./prepare_for_CTAN
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ mybibfile.bib

*.hd

texlogsieve

LNI-english.lbx
LNI-ngerman.lbx
LNI.bbx
LNI.cbx

## Core latex/pdflatex auxiliary files:
*.aux
*.lof
Expand Down
27 changes: 27 additions & 0 deletions Texlivefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,46 @@
latex-bin
amsmath
babel-english
babel-german
bera
blindtext
biber
biblatex
biblatex-lni
booktabs
caption
ccicons
cleveref
cm-super
cmap
collection-fontsrecommended
csquotes
ctanify
dehyph-exptl
enumitem
epstopdf-pkg
eso-pic
etoolbox
fancyhdr
geometry
graphics
grffile
hologo
hyperref
hyphen-german
hypdoc
infwarerr
kvsetkeys
kvdefinekeys
libertine
listings
ltxcmds
microtype
mnsymbol
mwe
nag
oberdiek
siunitx
tools
upquote
xcolor
34 changes: 0 additions & 34 deletions build.sh

This file was deleted.

10 changes: 5 additions & 5 deletions lni.cls
Original file line number Diff line number Diff line change
Expand Up @@ -657,19 +657,19 @@
\brokenpenalty=2000
\vfuzz \hfuzz
\raggedbottom
%%
%%
%% Copyright (C) 2016-2023 by Gesellschaft für Informatik e.V. (GI)
%%
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License (LPPL), either
%% version 1.3c of this license or (at your option) any later
%% version. The latest version of this license is in the file:
%%
%%
%% http://www.latex-project.org/lppl.txt
%%
%%
%% This work is "maintained" (as per LPPL maintenance status) by
%% Martin Sievers.
%%
%%
%% This work consists of the file lni.dtx
%% lni.ins
%% README.md
Expand Down

0 comments on commit bbc67cd

Please sign in to comment.