2023-03-16 18:08:28 +08:00
|
|
|
.docs-base:
|
|
|
|
extends:
|
2024-06-20 18:46:50 +08:00
|
|
|
- .build-linux
|
|
|
|
- .use-alpine/x86_64_build
|
2023-03-16 18:08:28 +08:00
|
|
|
artifacts:
|
|
|
|
expose_as: 'Documentation preview'
|
|
|
|
paths:
|
2024-06-26 17:41:37 +08:00
|
|
|
- public/
|
2023-03-16 18:08:28 +08:00
|
|
|
script:
|
2024-06-20 18:46:50 +08:00
|
|
|
- meson setup _build -D prefix=$(pwd) --auto-features=disabled
|
2024-09-05 01:02:08 +08:00
|
|
|
-D vulkan-drivers="" -D gallium-drivers="" -D platforms=[] -D glx=disabled
|
2024-06-20 18:46:50 +08:00
|
|
|
-D video-codecs="" -D html-docs=enabled -D html-docs-path=public
|
|
|
|
- meson compile -C _build
|
|
|
|
- meson install -C _build
|
2023-03-16 18:08:28 +08:00
|
|
|
|
|
|
|
pages:
|
|
|
|
extends: .docs-base
|
|
|
|
stage: deploy
|
|
|
|
rules:
|
2023-09-16 01:04:43 +08:00
|
|
|
- !reference [.common-rules, rules]
|
2023-03-16 18:08:28 +08:00
|
|
|
- !reference [.no_scheduled_pipelines-rules, rules]
|
|
|
|
- if: '$CI_PROJECT_NAMESPACE == "mesa" && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && $CI_COMMIT_BRANCH'
|
|
|
|
changes: &docs-or-ci
|
2024-06-26 17:41:37 +08:00
|
|
|
- docs/**/*
|
|
|
|
- .gitlab-ci.yml
|
|
|
|
# All the source files documentation is extracted from
|
|
|
|
# git grep -h ":file: src/" -- docs | sort | uniq
|
|
|
|
- src/compiler/nir/nir.h
|
|
|
|
- src/intel/isl/**/*
|
|
|
|
- src/vulkan/runtime/**/*
|
2023-03-16 18:08:28 +08:00
|
|
|
when: always
|
|
|
|
# Other cases default to never
|
|
|
|
|
|
|
|
test-docs:
|
|
|
|
extends: .docs-base
|
|
|
|
# Cancel job if a newer commit is pushed to the same branch
|
|
|
|
interruptible: true
|
|
|
|
stage: deploy
|
|
|
|
rules:
|
2023-09-16 01:04:43 +08:00
|
|
|
- !reference [.common-rules, rules]
|
2024-06-26 17:18:15 +08:00
|
|
|
# pre-merge or merge pipeline
|
2023-03-16 18:08:28 +08:00
|
|
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
|
|
changes: *docs-or-ci
|
|
|
|
when: on_success
|
2024-06-26 17:18:15 +08:00
|
|
|
# fork pipeline
|
|
|
|
- if: '$CI_COMMIT_BRANCH && $CI_PROJECT_NAMESPACE != "mesa"'
|
|
|
|
changes: *docs-or-ci
|
2024-06-26 19:05:38 +08:00
|
|
|
when: on_success
|
2023-03-16 18:08:28 +08:00
|
|
|
# Other cases default to never
|
|
|
|
|
|
|
|
linkcheck-docs:
|
|
|
|
extends: .docs-base
|
|
|
|
# Cancel job if a newer commit is pushed to the same branch
|
|
|
|
interruptible: true
|
|
|
|
stage: deploy
|
|
|
|
rules:
|
2023-09-16 01:04:43 +08:00
|
|
|
- !reference [.common-rules, rules]
|
2023-03-16 18:08:28 +08:00
|
|
|
- !reference [.scheduled_pipeline-rules, rules]
|
|
|
|
allow_failure: true
|
2024-06-20 18:46:50 +08:00
|
|
|
script:
|
|
|
|
- sphinx-build -W -b linkcheck docs public
|