It's known that compile_commands.json are stored alongside its related artifacts, i.e. in the context-depth output folder, however there is no explicit reference to it.
build:
output:
- type: compilation database
file: compile_commands.json
Also consider adding a path node with output files and output-dirs already combined, for example:
build:
output-dirs:
outdir: ./custom
output:
- type: elf
file: program.axf
path: ./custom/program.axf
- type: compilation database
file: compile_commands.json
path: ./custom/compile_commands.json