From 80dbbf18c662b0491e6692082551b2b90af2c20e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20Wi=C3=9Fmann?= Date: Wed, 3 May 2023 14:20:44 +0200 Subject: [PATCH] Lets have two latex yml configs --- gitlab-ci/{latex.yml => latex-auto.yml} | 0 gitlab-ci/latex-makefile.yml | 32 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+) rename gitlab-ci/{latex.yml => latex-auto.yml} (100%) create mode 100644 gitlab-ci/latex-makefile.yml diff --git a/gitlab-ci/latex.yml b/gitlab-ci/latex-auto.yml similarity index 100% rename from gitlab-ci/latex.yml rename to gitlab-ci/latex-auto.yml diff --git a/gitlab-ci/latex-makefile.yml b/gitlab-ci/latex-makefile.yml new file mode 100644 index 0000000..7856a0f --- /dev/null +++ b/gitlab-ci/latex-makefile.yml @@ -0,0 +1,32 @@ +compile_latex: + image: aergus/latex # the docker image by aergus https://hub.docker.com/r/aergus/latex/ + stage: build + variables: + GIT_SUBMODULE_STRATEGY: recursive + before_script: + - git submodule sync + - git submodule update --init --remote + script: + # the following script requires bash + # when editing, be careful, not to use any colons since they mess up the yaml parser! + # compile all the PDFs you are interested in: + - make + - git ls-files -z -o -x '*.pdf' |xargs -0 rm -v -f # remove all untracked files (-o) except for *.pdf files + cache: + untracked: true # cache all pdf files for subsequent runs + artifacts: + name: "${CI_PROJECT_NAME}-pdfs" + when: always + expire_in: 10 yrs + untracked: true + + # You can link the most recently *finished* artifacts by a badge: + # + # Link: https://gitlab.cs.fau.de/%{project_path}/-/jobs/artifacts/%{default_branch}/browse?job=compile_latex + # Badge image URL: https://gitlab.cs.fau.de/%{project_path}/badges/%{default_branch}/build.svg + # + # e.g.: https://gitlab.cs.fau.de/thorsten/coalgpartref/-/jobs/artifacts/master/browse?job=compile_latex + # + #environment: + # name: Recent PDFs + # url: https://gitlab.cs.fau.de/$CI_PROJECT_PATH/builds/$CI_BUILD_ID/artifacts/browse