From 9f2a218fb71f3f08a97b1e0fec975890253c7c88 Mon Sep 17 00:00:00 2001 From: Felix Grzelka Date: Sun, 7 Nov 2021 19:37:22 +0100 Subject: [PATCH 01/13] setup ci --- .github/workflows/blank.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/blank.yml diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 0000000..4691f4b --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] + pull_request: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + container: dockershelf/latex:full + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: pdftex -shell-escape hpitr.dtx + From 2eb5161e2450bb8b330fbfd4670c2ac09bbcf633 Mon Sep 17 00:00:00 2001 From: Felix Grzelka Date: Sun, 7 Nov 2021 20:15:44 +0100 Subject: [PATCH 02/13] upload build artifacts --- .github/workflows/blank.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 4691f4b..ac1d1ad 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -26,11 +26,9 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! - # Runs a set of commands using the runners shell - name: Run a multi-line script run: pdftex -shell-escape hpitr.dtx - + with: + name: output + path: "*.pdf" From b614a58c7cb8eb4dd62bf52b5da18662e94e0ce9 Mon Sep 17 00:00:00 2001 From: Felix Grzelka Date: Sun, 7 Nov 2021 20:18:41 +0100 Subject: [PATCH 03/13] fix artifact upload --- .github/workflows/blank.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index ac1d1ad..e221cea 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -29,6 +29,9 @@ jobs: # Runs a set of commands using the runners shell - name: Run a multi-line script run: pdftex -shell-escape hpitr.dtx + + - name: Archive artifacts + uses: actions/upload-artifact@v2 with: - name: output + name: compiled-pdfs path: "*.pdf" From 5986bb082a06e03a07456f0ed77d5411b37df08e Mon Sep 17 00:00:00 2001 From: Felix Grzelka Date: Sun, 7 Nov 2021 20:49:51 +0100 Subject: [PATCH 04/13] install fonts in ci --- .github/workflows/blank.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index e221cea..2a9ea57 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -25,7 +25,11 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - + + - name: install fonts + run: | + sudo apt update + sudo apt install -y fonts-texgyre # Runs a set of commands using the runners shell - name: Run a multi-line script run: pdftex -shell-escape hpitr.dtx From dd4f2a019ea53a0c0998e6e9f35e54bf7f9c55a6 Mon Sep 17 00:00:00 2001 From: felix Date: Sun, 7 Nov 2021 21:15:55 +0100 Subject: [PATCH 05/13] add .gitignore --- .gitignore | 303 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 303 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..84aaa41 --- /dev/null +++ b/.gitignore @@ -0,0 +1,303 @@ +*.pdf +# Created by https://www.toptal.com/developers/gitignore/api/latex +# Edit at https://www.toptal.com/developers/gitignore?templates=latex + +### LaTeX ### +## Core latex/pdflatex auxiliary files: +*.aux +*.lof +*.log +*.lot +*.fls +*.out +*.toc +*.fmt +*.fot +*.cb +*.cb2 +.*.lb + +## Intermediate documents: +*.dvi +*.xdv +*-converted-to.* +# these rules might exclude image files for figures etc. +# *.ps +# *.eps +# *.pdf + +## Generated if empty string is given at "Please type another file name for output:" +.pdf + +## Bibliography auxiliary files (bibtex/biblatex/biber): +*.bbl +*.bcf +*.blg +*-blx.aux +*-blx.bib +*.run.xml + +## Build tool auxiliary files: +*.fdb_latexmk +*.synctex +*.synctex(busy) +*.synctex.gz +*.synctex.gz(busy) +*.pdfsync + +## Build tool directories for auxiliary files +# latexrun +latex.out/ + +## Auxiliary and intermediate files from other packages: +# algorithms +*.alg +*.loa + +# achemso +acs-*.bib + +# amsthm +*.thm + +# beamer +*.nav +*.pre +*.snm +*.vrb + +# changes +*.soc + +# comment +*.cut + +# cprotect +*.cpt + +# elsarticle (documentclass of Elsevier journals) +*.spl + +# endnotes +*.ent + +# fixme +*.lox + +# feynmf/feynmp +*.mf +*.mp +*.t[1-9] +*.t[1-9][0-9] +*.tfm + +#(r)(e)ledmac/(r)(e)ledpar +*.end +*.?end +*.[1-9] +*.[1-9][0-9] +*.[1-9][0-9][0-9] +*.[1-9]R +*.[1-9][0-9]R +*.[1-9][0-9][0-9]R +*.eledsec[1-9] +*.eledsec[1-9]R +*.eledsec[1-9][0-9] +*.eledsec[1-9][0-9]R +*.eledsec[1-9][0-9][0-9] +*.eledsec[1-9][0-9][0-9]R + +# glossaries +*.acn +*.acr +*.glg +*.glo +*.gls +*.glsdefs +*.lzo +*.lzs + +# uncomment this for glossaries-extra (will ignore makeindex's style files!) +# *.ist + +# gnuplottex +*-gnuplottex-* + +# gregoriotex +*.gaux +*.glog +*.gtex + +# htlatex +*.4ct +*.4tc +*.idv +*.lg +*.trc +*.xref + +# hyperref +*.brf + +# knitr +*-concordance.tex +# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files +# *.tikz +*-tikzDictionary + +# listings +*.lol + +# luatexja-ruby +*.ltjruby + +# makeidx +*.idx +*.ilg +*.ind + +# minitoc +*.maf +*.mlf +*.mlt +*.mtc[0-9]* +*.slf[0-9]* +*.slt[0-9]* +*.stc[0-9]* + +# minted +_minted* +*.pyg + +# morewrites +*.mw + +# newpax +*.newpax + +# nomencl +*.nlg +*.nlo +*.nls + +# pax +*.pax + +# pdfpcnotes +*.pdfpc + +# sagetex +*.sagetex.sage +*.sagetex.py +*.sagetex.scmd + +# scrwfile +*.wrt + +# sympy +*.sout +*.sympy +sympy-plots-for-*.tex/ + +# pdfcomment +*.upa +*.upb + +# pythontex +*.pytxcode +pythontex-files-*/ + +# tcolorbox +*.listing + +# thmtools +*.loe + +# TikZ & PGF +*.dpth +*.md5 +*.auxlock + +# todonotes +*.tdo + +# vhistory +*.hst +*.ver + +# easy-todo +*.lod + +# xcolor +*.xcp + +# xmpincl +*.xmpi + +# xindy +*.xdy + +# xypic precompiled matrices and outlines +*.xyc +*.xyd + +# endfloat +*.ttt +*.fff + +# Latexian +TSWLatexianTemp* + +## Editors: +# WinEdt +*.bak +*.sav + +# Texpad +.texpadtmp + +# LyX +*.lyx~ + +# Kile +*.backup + +# gummi +.*.swp + +# KBibTeX +*~[0-9]* + +# TeXnicCenter +*.tps + +# auto folder when using emacs and auctex +./auto/* +*.el + +# expex forward references with \gathertags +*-tags.tex + +# standalone packages +*.sta + +# Makeindex log files +*.lpz + +# xwatermark package +*.xwm + +# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib +# option is specified. Footnotes are the stored in a file with suffix Notes.bib. +# Uncomment the next line to have this generated file ignored. +#*Notes.bib + +### LaTeX Patch ### +# LIPIcs / OASIcs +*.vtc + +# glossaries +*.glstex + +# End of https://www.toptal.com/developers/gitignore/api/latex + From 379b097fd008c8c8850bafb5a780bca5685bb9c4 Mon Sep 17 00:00:00 2001 From: felix Date: Sun, 7 Nov 2021 21:17:48 +0100 Subject: [PATCH 06/13] remove sudo from install script --- .github/workflows/blank.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 2a9ea57..b0243c1 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -28,8 +28,8 @@ jobs: - name: install fonts run: | - sudo apt update - sudo apt install -y fonts-texgyre + apt update + apt install -y fonts-texgyre # Runs a set of commands using the runners shell - name: Run a multi-line script run: pdftex -shell-escape hpitr.dtx From f38b11c9d54f77464546f34e31e7e3b51d0e2cad Mon Sep 17 00:00:00 2001 From: felix Date: Sun, 7 Nov 2021 21:26:16 +0100 Subject: [PATCH 07/13] install all the fonts --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index b0243c1..22de488 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -29,7 +29,7 @@ jobs: - name: install fonts run: | apt update - apt install -y fonts-texgyre + apt install -y fonts-texgyre texlive-fonts-extra # Runs a set of commands using the runners shell - name: Run a multi-line script run: pdftex -shell-escape hpitr.dtx From 4cc9bbd24cfea398191a1ffdb71faff05d34f5a2 Mon Sep 17 00:00:00 2001 From: Felix Grzelka Date: Mon, 12 Sep 2022 16:06:50 +0200 Subject: [PATCH 08/13] update ci config --- .github/workflows/blank.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 22de488..7d3146a 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -19,17 +19,17 @@ jobs: build: # The type of runner that the job will run on runs-on: ubuntu-latest - container: dockershelf/latex:full + container: texlive/texlive:latest # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - name: install fonts - run: | - apt update - apt install -y fonts-texgyre texlive-fonts-extra + # - name: install fonts + # run: | + # apt update + # apt install -y fonts-texgyre texlive-fonts-extra # Runs a set of commands using the runners shell - name: Run a multi-line script run: pdftex -shell-escape hpitr.dtx From 439bb0830d212ea2a10989602e8485442912c9e7 Mon Sep 17 00:00:00 2001 From: Felix Grzelka Date: Tue, 13 Sep 2022 15:22:12 +0200 Subject: [PATCH 09/13] compile all files in ci --- .github/workflows/blank.yml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 7d3146a..201855c 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -25,17 +25,25 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 + - name: generate files from dtx + run: pdftex hpitr.dtx - # - name: install fonts - # run: | - # apt update - # apt install -y fonts-texgyre texlive-fonts-extra - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: pdftex -shell-escape hpitr.dtx + - name: compile all tex files with lualatex + run: latexmk -pdf -lualatex -silent + + - name: create zip file for release + run: zip hpitr.zip *.pdf *.tex README.* *.cls *.dtx - name: Archive artifacts uses: actions/upload-artifact@v2 with: - name: compiled-pdfs - path: "*.pdf" + name: artifacts + path: | + "*.pdf" + "*.tex" + "README.*" + "*.cls" + "*.dtx" + + - name: create release + run: hub release create -a "hpitr.zip#hpitr-$(date +%Y-%m-%d)" "$(date +%Y-%m-%d)" From 5b3f50b61cc450d09f5bb14766b5a41a8688455b Mon Sep 17 00:00:00 2001 From: Felix Grzelka Date: Tue, 13 Sep 2022 16:22:07 +0200 Subject: [PATCH 10/13] install missing packages and version in release --- .github/workflows/blank.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 201855c..4a9f94e 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -25,6 +25,12 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 + + - name: install zip & more fonts + run: | + apt update + apt install -y fonts-texgyre texlive-fonts-extra zip + - name: generate files from dtx run: pdftex hpitr.dtx @@ -46,4 +52,4 @@ jobs: "*.dtx" - name: create release - run: hub release create -a "hpitr.zip#hpitr-$(date +%Y-%m-%d)" "$(date +%Y-%m-%d)" + run: hub release create -a "hpitr.zip#hpitr-$(sed '4q;d' README.txt | xargs | cut -d " " -f 2)-$(date +%Y-%m-%d)" "$(sed '4q;d' README.txt | xargs | cut -d " " -f 2)" From b57466a62425d58ef293d2a8278de11d9d86c28a Mon Sep 17 00:00:00 2001 From: Felix Grzelka Date: Tue, 13 Sep 2022 16:26:33 +0200 Subject: [PATCH 11/13] don't install fonts --- .github/workflows/blank.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 4a9f94e..bd75378 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -26,10 +26,10 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - name: install zip & more fonts + - name: install zip run: | apt update - apt install -y fonts-texgyre texlive-fonts-extra zip + apt install -y zip - name: generate files from dtx run: pdftex hpitr.dtx From e08fb237449ada40c267c4efc94a9b3448ac06a0 Mon Sep 17 00:00:00 2001 From: Felix Grzelka Date: Tue, 13 Sep 2022 16:45:26 +0200 Subject: [PATCH 12/13] install hub --- .github/workflows/blank.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index bd75378..92af7f9 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -30,6 +30,9 @@ jobs: run: | apt update apt install -y zip + + - name: install hub + run: snap install --classic hub - name: generate files from dtx run: pdftex hpitr.dtx @@ -50,6 +53,9 @@ jobs: "README.*" "*.cls" "*.dtx" + "*.zip" - name: create release + env: + GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} run: hub release create -a "hpitr.zip#hpitr-$(sed '4q;d' README.txt | xargs | cut -d " " -f 2)-$(date +%Y-%m-%d)" "$(sed '4q;d' README.txt | xargs | cut -d " " -f 2)" From 2c7b8bf8730ca6952c23c02a9bf1b89e2d212e08 Mon Sep 17 00:00:00 2001 From: Felix Grzelka Date: Tue, 13 Sep 2022 16:49:45 +0200 Subject: [PATCH 13/13] install snapd --- .github/workflows/blank.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 92af7f9..2a1fde5 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -26,10 +26,10 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - name: install zip + - name: install zip and snapd run: | apt update - apt install -y zip + apt install -y zip snapd - name: install hub run: snap install --classic hub