Combined manual and ecl building in one task.

This commit is contained in:
c-kloukinas 2026-03-29 23:54:13 +01:00
parent 25420da60b
commit e2be81d401

View file

@ -1,31 +1,17 @@
pdf-manual:
stage: build
# instead of calling g++ directly you can also use some build toolkit like make
# install the necessary build tools when needed
before_script:
- apt update && apt -y install texinfo texlive-base texlive-plain-generic
artifacts:
paths:
- target-dir
script:
- ./configure --prefix=${CI_PROJECT_DIR}/target-dir/
- mkdir -p ${CI_PROJECT_DIR}/target-dir/ ; make doc ; cd build/doc/ ; make manual ; cd manual ; make ecl-manual.pdf ; cp -p ecl-manual.pdf ${CI_PROJECT_DIR}/target-dir/
rules:
- if: $CI_COMMIT_BRANCH == "develop"
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
build:
stage: build
# instead of calling g++ directly you can also use some build toolkit like make
# install the necessary build tools when needed
# before_script:
# - apt update && apt -y install texinfo texlive-base texlive-plain-generic
before_script:
- apt update && apt -y install texinfo texlive-base texlive-plain-generic
# instead of calling g++ directly you can also use some build toolkit like make
# install the necessary build tools when needed
# - apt update && apt -y install make autoconf
artifacts:
paths:
- target-dir
script:
- ./configure --prefix=${CI_PROJECT_DIR}/target-dir/
- make
- mkdir -p ${CI_PROJECT_DIR}/target-dir/ ; make doc ; cd build/doc/ ; make manual ; cd manual ; make ecl-manual.pdf ; cp -p ecl-manual.pdf ${CI_PROJECT_DIR}/target-dir/
- make install
rules:
- if: $CI_COMMIT_BRANCH == "develop"