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

Switch from CircleCI to GitHub actions (and fix some issues) #105

Merged
merged 32 commits into from
Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b1ff81e
Add outline of GitHub-actions based build
koppor Jul 9, 2023
cc7f531
Fix image name
koppor Jul 9, 2023
311832d
Try to finish workflow
koppor Jul 9, 2023
5972b99
Fix syntax
koppor Jul 9, 2023
841255a
Try to install missing packages
koppor Jul 9, 2023
f090340
Invalid CircleCI file (to disable their build)
koppor Jul 9, 2023
7bebbe7
Fix package name
koppor Jul 9, 2023
9d53ab2
Add missing packages
koppor Jul 9, 2023
015bfa8
Fix package requirement
koppor Jul 9, 2023
4a207ec
Fix
koppor Jul 9, 2023
6f839d0
Fix
koppor Jul 9, 2023
1ed11e2
More...
koppor Jul 9, 2023
3de5c11
Fix font installation issue
koppor Jul 9, 2023
19c1f01
Fix call
koppor Jul 9, 2023
faeae24
Try to reduce parallel workflow runs (PR vs. push)
koppor Jul 9, 2023
fee6537
Try to fix babel egain
koppor Jul 9, 2023
d95d21f
More packages
koppor Jul 9, 2023
4d3e24e
Check fmutil
koppor Jul 9, 2023
7964248
Fix lni-paper-example-de.tex (amsmath missing)
koppor Jul 9, 2023
84b3338
Fix name
koppor Jul 9, 2023
5b4ccce
Fix call
koppor Jul 9, 2023
95c4a32
Remove MiKTeX commands
koppor Jul 9, 2023
06646e9
Try to get hyphenation fixed
koppor Jul 9, 2023
9aa1a7c
No experimental hyphenation packages?
koppor Jul 9, 2023
da2624d
Build prepration not necessary
koppor Jul 9, 2023
bed2220
Fix execution bit
koppor Jul 9, 2023
77774eb
Fix biber execution
koppor Jul 9, 2023
7bbe33c
Fix PATH addition
koppor Jul 9, 2023
96c2774
Fix linktotoc
koppor Jul 9, 2023
811503a
Fix missing ctanify
koppor Jul 9, 2023
34ebbe6
Install deps
koppor Jul 9, 2023
7722d2c
Fixes
koppor Jul 9, 2023
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
16 changes: 0 additions & 16 deletions .circleci/config.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
*.dtx text eol=lf
*.ins text eol=lf
*.md text eol=lf
*.sh text eol=lf
*.tex text eolf=lf diff=tex
*.yml text eol=lf
*.json text eol=lf
prepare_for_CTAN text eol=lf

*.pdf binary
48 changes: 48 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: check

on:
push:
branches:
-main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

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

- name: Build examples (using build.sh)
run: /bin/entrypoint work

- name: Upload build result
uses: actions/upload-artifact@v3
with:
name: PDFs
path: '/work/out'

- name: Install dependencies for ctanify
run: apk add perl-file-copy-recursive zip

- name: Prepare for CTAN
run: ./prepare_for_CTAN

- name: Upload CTAN build
uses: actions/upload-artifact@v3
with:
name: CTAN
path: '*.tar.gz'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
lni-author-template.pdf
lni-paper-example-de.pdf

## Core latex/pdflatex auxiliary files:
*.aux
*.lof
Expand Down
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"EditorConfig.EditorConfig"
]
}
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Changed

- (chore) `build.sh` assumes `*.md` are formatted using LF line endings, removed `dos2unix` dependency.

### Fixed

- `! LaTeX Error: Environment align undefined` in `lni-paper-example.de.tex` is not appearing any more.

## [1.8.0] - 2022-06-10

### Changed
Expand All @@ -15,6 +23,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Improvement for documentation (merge requests [#89](https://github.com/gi-ev/LNI/issues/89),[#90](https://github.com/gi-ev/LNI/issues/90), [#93](https://github.com/gi-ev/LNI/issues/93), [#95](https://github.com/gi-ev/LNI/issues/95), [#96](https://github.com/gi-ev/LNI/issues/96)

### Fixed

- hyperref option `linktoc` fixed to `all` instead of `both`
- Fixed output in bst files ([#97](https://github.com/gi-ev/LNI/issues/97))

## [1.7.0] - 2021-03-02
Expand All @@ -27,7 +37,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed

- Fix setting of pdf metadata ([#87](https://github.com/gi-ev/LNI/issues/87))

## [1.6.0] - 2019-10-14

### Added
Expand Down
18 changes: 18 additions & 0 deletions Texlivefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
babel-german
bera
blindtext
biber
biblatex
biblatex-lni
ccicons
cleveref
csquotes
ctanify
dehyph-exptl
hyphen-german
hypdoc
libertine
mnsymbol
mwe
nag
upquote
10 changes: 10 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
set -e
pdflatex lni.dtx
pdflatex lni.dtx
pdflatex lni.dtx
touch mybibfile.bib
pdflatex lni-author-template
pdflatex lni-paper-example-de
biber lni-paper-example-de
pdflatex lni-paper-example-de
pdflatex lni-paper-example-de
1 change: 1 addition & 0 deletions lni-paper-example-de.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
%% Zu Demonstrationszwecken
\usepackage[math]{blindtext}
\usepackage{mwe}
\usepackage{amsmath}

%% BibLaTeX-Sonderkonfiguration,
%% falls man schnell eine existierende Bibliographie wiederverwenden will, aber nicht die .bib-Datei händisch anpassen möchte.
Expand Down
35 changes: 18 additions & 17 deletions lni.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ License:| Released under the LaTeX Project Public License v1.3c or later

\postamble

Copyright (C) 2016-2022 by Gesellschaft für Informatik e.V. (GI)
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
Expand Down Expand Up @@ -162,7 +162,7 @@ This work consists of the file lni.dtx
Informatics'', published by the ``Gesellschaft für Informatik e.\,V.'' (GI)},
pdfauthor={Martin Sievers},
urlcolor=blue,%
linktoc=both,%
linktoc=all,%
colorlinks=true]{hyperref}
\usepackage[nameinlink,capitalise]{cleveref}

Expand Down Expand Up @@ -305,12 +305,12 @@ This work consists of the file lni.dtx
% it more compatible with other packages like \pkg{authorarchive}}
% \changes{v1.6}{2019/10/14}{Fix for BibTeX style}
% \changes{v1.6}{2019/10/14}{Add support for \pkg{selnolig}}
% \changes{v1.7}{2020/12/03}{Revert redefinition of \cs{year} after
% \changes{v1.7}{2020/12/03}{Revert redefinition of \cs{year} after
% \cs{maketitle}}
% \changes{v1.7}{2021/03/02}{Fix setting of pdf metadata (#87)}
% \changes{v1.7}{2021/03/02}{Change loading of latest ngerman hyphenation
% patterns (#47)}
% \changes{v1.7}{2021/03/02}{Change \cs{year} to \cs{yearofpublication} to
% \changes{v1.7}{2021/03/02}{Change \cs{year} to \cs{yearofpublication} to
% avoid problems (#85)}
% \changes{v1.8}{2022/06/10}{Improvements for documentation}
% \changes{v1.8}{2022/06/10}{Fix output error in bst files (#97)}
Expand Down Expand Up @@ -354,10 +354,10 @@ This work consists of the file lni.dtx
% \href{https://www.fernuni-hagen.de/evis/team/stefan.strecker.shtml}{Stefan
% Strecker} and his team for their suggestions and tests.
%
% There is an additional package
% \href{https://github.com/gi-ev/biblatex-lni}{\pkg{biblatex-lni}} for an easy
% way of getting a correctly formed bibliography. This package can be
% incorporated using the option \opt{biblatex}. See \cref{sec:bibliography} for
% There is an additional package
% \href{https://github.com/gi-ev/biblatex-lni}{\pkg{biblatex-lni}} for an easy
% way of getting a correctly formed bibliography. This package can be
% incorporated using the option \opt{biblatex}. See \cref{sec:bibliography} for
% more information.
%
% \section{Installation}
Expand Down Expand Up @@ -414,9 +414,9 @@ This work consists of the file lni.dtx
% \BibTeX{}, but with a much more powerful approach consisting of the package
% \pkg{biblatex} and the tool \texttt{biber}.
%
% There is even a specialized package
% \href{https://github.com/gi-ev/biblatex-lni}{\pkg{biblatex-lni}} which is
% automatically used when setting the class option \opt{biblatex}. For more
% There is even a specialized package
% \href{https://github.com/gi-ev/biblatex-lni}{\pkg{biblatex-lni}} which is
% automatically used when setting the class option \opt{biblatex}. For more
% information see as well \cref{sec:bibliography}.
%
% \DescribeOption{crop\space(new in v1.1)}%
Expand Down Expand Up @@ -459,7 +459,7 @@ This work consists of the file lni.dtx
% There is not just one \enquote{\TeX} and one \enquote{bibliography tool}, but
% many different ways to transform a .tex file into a PDF.
% Some \TeX{} editors like \texttt{TeXstudio}, \texttt{TeXmaker} and
% \texttt{TeXshop} support a special set of meta comments to give some
% \texttt{TeXshop} support a special set of meta comments to give some
% information, how to deal with a concrete document.
%
% A typical example looks like:
Expand Down Expand Up @@ -682,8 +682,8 @@ This work consists of the file lni.dtx
% position within your text. The correct bst file is loaded automatically.
%
% With document option
% \opt{biblatex} (cf.~\cref{sec:options}) you can easily switch to the
% \pkg{biblatex} style \enquote{lni} provided by
% \opt{biblatex} (cf.~\cref{sec:options}) you can easily switch to the
% \pkg{biblatex} style \enquote{lni} provided by
% \href{https://github.com/gi-ev/biblatex-lni}{\pkg{biblatex-lni}}.
% However, you have to add information on the bib
% file(s) in your preamble using \cs{addbibresource\marg{Bib file(s)}} and call
Expand Down Expand Up @@ -1418,12 +1418,12 @@ This work consists of the file lni.dtx
\fancypagestyle{plain}{%
\fancyhead{} % Löscht alle Kopfzeileneinstellungen
\fancyhead[RO]{%
\small\@editor~(Hrsg.):\
\small\@editor~(Hrsg.):\
\ifdefempty{\@bookshorttitle}%
{}%
{\@bookshorttitle,\hspace{1sp}}%
\null\linebreak%
Lecture Notes in Informatics (LNI), Gesellschaft für Informatik,
Lecture Notes in Informatics (LNI), Gesellschaft für Informatik,
Bonn~\@yearofpublication%
\hspace{5pt}\thepage\hspace{0.05cm}%
}%
Expand All @@ -1433,7 +1433,7 @@ This work consists of the file lni.dtx
{}%
{\@bookshorttitle,\hspace{1sp}}%
\linebreak\hspace{0.05cm}\thepage\hspace{5pt} Lecture Notes
in Informatics (LNI), Gesellschaft für Informatik,
in Informatics (LNI), Gesellschaft für Informatik,
Bonn~\@yearofpublication%
}%
\fancyfoot{}% Löscht alle Fußzeileneinstellungen
Expand Down Expand Up @@ -3126,6 +3126,7 @@ Schlagwort1 \and Schlagwort2 %Keyword1 \and Keyword2
\usepackage{booktabs}

%% Zu Demonstrationszwecken
\usepackage{amsmath}
\usepackage[math]{blindtext}
\usepackage{mwe}

Expand Down
4 changes: 1 addition & 3 deletions prepare_for_CTAN
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ if [ -f lni.tar.gz ]; then
echo "Remove old archive"
rm lni.tar.gz
fi
dos2unix *.md
rm -f lni-instructions.pdf
ln -s -f lni.pdf lni-instructions.pdf
ctanify --no-tds lni.ins lni.pdf README.md CHANGELOG.md CONTRIBUTING.md "lni-instructions.pdf=doc/latex/lni" "lni-author-template.tex=doc/latex/lni" "lni-paper-example-de.tex=doc/latex/lni" "lni-paper-example-de.bib=doc/latex/lni" "lni.bst=bibtex/bst/lni" "lnig.bst=bibtex/bst/lni"

ctanify --no-tds lni.ins lni.pdf README.md CHANGELOG.md CONTRIBUTING.md "lni-instructions.pdf=doc/latex/lni" "lni-author-template.tex=doc/latex/lni" "lni-paper-example-de.tex=doc/latex/lni" "lni-paper-example-de.bib=doc/latex/lni" "lni.bst=bibtex/bst/lni" "lnig.bst=bibtex/bst/lni"