1
0
mirror of synced 2024-12-22 12:40:00 +01:00
modern-cmake/.gitlab-ci.yml
2024-08-15 07:04:35 +00:00

28 lines
581 B
YAML

default:
image: ghcr.io/prefix-dev/pixi:latest
before_script:
- apt-get update && apt-get install -y texlive texlive-xetex texlive-fonts-extra latexmk
variables:
DEBIAN_FRONTEND: noninteractive
test:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
script:
- pixi run test
- pixi run build
- pixi run pdf
pages:
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script:
- pixi run build
- pixi run pdf
- cp _build/latex/modern-cmake.pdf _build/html/
artifacts:
paths:
- _build/html
expire_in: 1 week