CI: put docs from both 1.0 and master on pages

This commit is contained in:
Pauli Virtanen 2024-03-31 15:39:00 +03:00 committed by Wim Taymans
parent bd5cc52c5c
commit d02cec53c6

View file

@ -265,6 +265,7 @@ build_on_fedora:
variables: variables:
MESON_OPTIONS: >- MESON_OPTIONS: >-
-Ddocs=enabled -Ddocs=enabled
-Dman=enabled
-Ddoc-prefix-value=/usr -Ddoc-prefix-value=/usr
-Ddoc-sysconfdir-value=/etc -Ddoc-sysconfdir-value=/etc
-Dinstalled_tests=enabled -Dinstalled_tests=enabled
@ -286,6 +287,47 @@ build_on_fedora:
- build-*/meson-logs - build-*/meson-logs
- prefix-* - prefix-*
build_on_fedora_html_docs:
extends:
- .build_on_fedora
variables:
MESON_OPTIONS: >-
-Ddocs=enabled
-Dman=enabled
-Ddoc-prefix-value=/usr
-Ddoc-sysconfdir-value=/etc
-Dinstalled_tests=enabled
-Dsystemd-system-service=enabled
-Dbluez5-backend-hsphfpd=enabled
-Daudiotestsrc=enabled
-Dtest=enabled
-Dvideotestsrc=enabled
-Dvolume=enabled
-Dvulkan=enabled
-Dsdl2=enabled
-Dsndfile=enabled
-Dsession-managers=[]
before_script:
- git fetch origin 1.0 master
- git branch -f 1.0 origin/1.0
- git branch -f master origin/master
- git clone -b 1.0 . branch-1.0
- git clone -b master . branch-master
- !reference [.build, before_script]
script:
- cd branch-1.0
- meson setup builddir $MESON_OPTIONS
- meson compile -C builddir doc/pipewire-docs
- cd ../branch-master
- meson setup builddir $MESON_OPTIONS
- meson compile -C builddir doc/pipewire-docs
artifacts:
name: pipewire-$CI_COMMIT_SHA
when: always
paths:
- branch-*/builddir/meson-logs
- branch-*/builddir/doc/html
build_on_alpine: build_on_alpine:
extends: extends:
- .alpine - .alpine
@ -513,12 +555,14 @@ pages:
- .not_coverity - .not_coverity
stage: pages stage: pages
dependencies: dependencies:
- build_on_fedora - build_on_fedora_html_docs
script: script:
- mkdir public - mkdir public public/devel
- cp -R prefix-*/share/doc/pipewire/html/* public/ - cp -R branch-1.0/builddir/doc/html/* public/
- cp -R branch-master/builddir/doc/html/* public/devel/
artifacts: artifacts:
paths: paths:
- public - public
only: only:
- 'master'
- '1.0' - '1.0'