[CI] Check HW Tops in CI Lots of chip information is generated by topgen, and committed to the repo (into paths containing `autogen`). There's a step in CI to check that the register definitions have not changed. It uses `hw/Makefile` to do so. There have been updates to that file to support running topgen, but no similar updates to the definition in CI. This change adds functionality to ensure topgen has been run and is "clean" in CI. Signed-off-by: Sam Elliott <selliott@lowrisc.org>
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6c74b0b..f54c886 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml
@@ -77,6 +77,13 @@ echo "Register headers not up-to-date. Regenerate them with 'make -C hw regs'." exit 1 fi + + make -C hw top && git diff --exit-code + if [[ $? != 0 ]]; then + echo -n "##vso[task.logissue type=error]" + echo "Autogenerated tops not up-to-date. Regenerate with 'make -C hw top'." + exit 1 + fi condition: always() displayName: Ensure all generated files are clean and up-to-date - bash: |