-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (66 loc) · 2 KB
/
ci.yml
File metadata and controls
79 lines (66 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
test-callgrind:
strategy:
matrix:
runner:
- platform: ubuntu-22.04
ubuntu-version: 22.04
- platform: ubuntu-24.04
ubuntu-version: 24.04
runs-on: ${{ matrix.runner.platform }}
steps:
- uses: actions/checkout@v4
# Skip installing package docs to avoid wasting time when installing valgrind
# See: https://github.com/actions/runner-images/issues/10977#issuecomment-2810713336
- name: Skip installing package docs
if: runner.os == 'Linux'
run: |
sudo tee /etc/dpkg/dpkg.cfg.d/01_nodoc > /dev/null << 'EOF'
path-exclude /usr/share/doc/*
path-exclude /usr/share/man/*
path-exclude /usr/share/info/*
EOF
- name: Update apt-get cache
run: sudo apt-get update
- name: Install build dependencies
run: |
sudo apt-get install -y \
build-essential \
automake \
autoconf \
libc6-dev \
gcc-multilib \
libc6-dev-i386 \
gdb \
docbook \
docbook-xsl \
docbook-xml \
xsltproc
- name: Run autogen
run: ./autogen.sh
- name: Configure
run: ./configure
- name: Build Valgrind
run: make -j$(nproc)
- name: Build test dependencies
run: |
make -C tests arch_test os_test true
make -C callgrind/tests check
- name: Run Callgrind tests
run: |
cd callgrind/tests
TESTS=$(ls *.vgtest | grep -v bug497723.vgtest)
perl ../../tests/vg_regtest --valgrind=../../vg-in-place $TESTS
- name: Upload test logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: callgrind-test-logs-${{ matrix.runner.ubuntu-version }}
path: callgrind/tests/*.log