diff --git a/.github/workflows/check_amalgamation.yml b/.github/workflows/check_amalgamation.yml index 551e82be0..8104a20af 100644 --- a/.github/workflows/check_amalgamation.yml +++ b/.github/workflows/check_amalgamation.yml @@ -154,6 +154,28 @@ jobs: # PR content in a job without credentials. python3 tools/generate_natvis/generate_natvis.py $MAIN_DIR + - name: Check the nlohmann_json.natvis generator options + run: | + cd $MAIN_DIR + # The options for configurations outside the checked-in file write + # to a temporary file, so they do not affect the diff below. + GENERATOR=tools/generate_natvis/generate_natvis.py + python3 $GENERATOR --list-tags + TAG_COUNT=$(python3 $GENERATOR --list-tags | wc -l) + + python3 $GENERATOR --abi-tags diag,_dp,_vns --abi-tags _diag --output $RUNNER_TEMP/abi_tags.natvis + grep -q '' $RUNNER_TEMP/abi_tags.natvis + grep -q '' $RUNNER_TEMP/abi_tags.natvis + test $(grep -c '