Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/generate-api-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Generate Plugin API Docs

on:

@RazvanLiviuVarzaru RazvanLiviuVarzaru Jun 12, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want this workflow to run on other branches and on Pull Requests that are not targeting main
then it is not enough to commit it to the main branch.
Every supported branch should have it.

Going one step back,
why you want this workflow to run for every push or bb-* branch?
This is a lot of stress imposed on public GitHub runners; where's the added value? Because I see no mechanism where the results from a push are retrieved/analyzed.

push:
branches:
- 'main'
- 'bb-*'
pull_request:
branches:
- 'main'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will only trigger if someone opens a Pull Request towards main or a bb-* branch.
What is your intention here?

- 'bb-*'
jobs:
generate-docs:
runs-on: ubuntu-latest
container:
image: quay.io/mariadb-foundation/bb-ecosystem:mariadb-doc-gen
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Generate documentation
shell: bash
run: |
set -euo pipefail
git config --global --add safe.directory `pwd`
git submodule update --init --recursive libmariadb
mkdir bld
cd bld
cmake -DENABLE_GCOV=OFF \

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could've probably used -DWITHOUT_SERVER=ON to skip most of the cmake checks.

-DMYSQL_MAINTAINER_MODE=OFF \
-DPLUGIN_ARCHIVE=NO \
-DPLUGIN_MROONGA=NO \
-DPLUGIN_CONNECT=NO \
-DPLUGIN_SPIDER=NO \
-DPLUGIN_ROCKSDB=NO \
-DPLUGIN_OQGRAPH=NO \
-DPLUGIN_TOKUDB=NO \
-DWITH_MARIABACKUP=NO \
-DWITH_EMBEDDED_SERVER=OFF \
-DWITH_UNIT_TESTS=OFF \
-DCONC_WITH_UNITTEST=OFF \
-DWITH_WSREP=OFF \
-DWITHOUT_DYNAMIC_PLUGINS=0 \
-DWITH_SSL=system \
-DWITH_PCRE=system \
-DWITHOUT_SERVER=ON \
-DUPDATE_SUBMODULES=OFF \
-DWITH_GENERATED_DOCS=YES \
..
cmake --build . --target=generated_docs_plugin_api
Loading