Skip to content

Commit e04e643

Browse files
art049claude
andcommitted
ci: add GitHub Actions workflow for callgrind tests
Add CI workflow that runs callgrind test suite on Ubuntu 22.04 and 24.04. Excludes bug497723 test which has a known issue. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f3bff00 commit e04e643

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
test-callgrind:
12+
strategy:
13+
matrix:
14+
runner:
15+
- platform: ubuntu-22.04
16+
ubuntu-version: 22.04
17+
- platform: ubuntu-24.04
18+
ubuntu-version: 24.04
19+
20+
runs-on: ${{ matrix.runner.platform }}
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Update apt-get cache
26+
run: sudo apt-get update
27+
28+
- name: Install build dependencies
29+
run: |
30+
sudo apt-get install -y \
31+
build-essential \
32+
automake \
33+
autoconf \
34+
libc6-dev \
35+
gcc-multilib \
36+
libc6-dev-i386 \
37+
gdb \
38+
docbook \
39+
docbook-xsl \
40+
docbook-xml \
41+
xsltproc
42+
43+
- name: Configure
44+
run: ./configure
45+
46+
- name: Build Valgrind
47+
run: make -j$(nproc)
48+
49+
- name: Build test dependencies
50+
run: |
51+
make -C tests arch_test os_test true
52+
make -C memcheck/tests bug445235_ada_demangle
53+
54+
- name: Run Callgrind tests
55+
run: |
56+
cd callgrind/tests
57+
TESTS=$(ls *.vgtest | grep -v bug497723.vgtest)
58+
perl ../../tests/vg_regtest --valgrind=../../vg-in-place $TESTS
59+
60+
- name: Upload test logs
61+
if: failure()
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: callgrind-test-logs-${{ matrix.runner.ubuntu-version }}
65+
path: callgrind/tests/*.log

0 commit comments

Comments
 (0)