Skip to content

Commit 1702d42

Browse files
committed
fixed #500 - added callgrind step to CI
1 parent 1678b7d commit 1702d42

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/CI-unixish.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,20 @@ jobs:
110110
run: |
111111
make clean
112112
make -j$(nproc) test selfcheck CXXOPTS="-O2 -g3 -stdlib=libc++ -fsanitize=memory" LDOPTS="-lc++ -fsanitize=memory"
113+
114+
- name: Run callgrind
115+
if: matrix.os == 'ubuntu-24.04'
116+
run: |
117+
wget https://github.com/danmar/simplecpp/archive/refs/tags/1.5.1.tar.gz
118+
tar xvf 1.5.1.tar.gz
119+
make clean
120+
make -j$(nproc) CXXOPTS="-O2 -g3"
121+
valgrind --tool=callgrind ./simplecpp -e simplecpp-1.5.1/simplecpp.cpp || (cat callgrind.log && false)
122+
cat callgrind.log
123+
callgrind_annotate --auto=no > callgrind.annotated.log
124+
head -50 callgrind.annotated.log
125+
126+
- uses: actions/upload-artifact@v4
127+
with:
128+
name: Callgrind Output
129+
path: ./callgrind.*

0 commit comments

Comments
 (0)