From 13a21e913a1bdeaba5eeba4c66f7ae08e0596a1a Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 3 Dec 2021 11:58:38 +0100 Subject: ci: verify DWARF5 symbols Technically, this does not validate the DWARF5 parsing completely, but it looks for the `main` symbol to show up as expected when compiling with whatever GCC version MSYS2/Git for Windows uses (which is typically very close to the latest GCC version available). Signed-off-by: Johannes Schindelin --- .github/workflows/build-and-test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 9cfcbcc..2372a71 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -52,4 +52,9 @@ jobs: gcc -g -o hello.exe hello.c && bin/${{env.BUILD_CONFIGURATION}}*/cv2pdb.exe hello.exe world.exe && - ls -l hello* world* + + ls -l hello* world* && + + curl -Lo cvdump.exe https://raw.githubusercontent.com/microsoft/microsoft-pdb/HEAD/cvdump/cvdump.exe && + ./cvdump.exe world.pdb >world.cvdump && + grep '^S_PUB32: .*, Flags: 00000000, main$' world.cvdump -- cgit v0.12