-
Notifications
You must be signed in to change notification settings - Fork 147
108 lines (96 loc) · 3.2 KB
/
pr-tests.yaml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# On each pull request, we build Dyninst, the test suite, the examples from
# dyninst/examples, and the external test from dyninst/external-tests
#
# The builds are carried out for each supported OS using the base containers
# at https://github.com/orgs/dyninst/packages
name: Pull Request Tests
on:
pull_request:
branches:
- master
workflow_dispatch:
jobs:
gcc-build:
permissions:
packages: read
strategy:
fail-fast: true
matrix:
os: ['ubuntu-20.04', 'ubuntu-22.04', 'ubuntu-23.04', 'ubuntu-23.10', 'ubuntu-24.04', 'fedora-37', 'fedora-38', 'fedora-39']
runs-on: ubuntu-latest
container:
image: ghcr.io/dyninst/amd64/${{ matrix.os }}-base:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
name: gcc on ${{ matrix.os }}
steps:
- name: Checkout Dyninst
uses: actions/checkout@v3
with:
path: dyninst/src
- name: Build Dyninst
run: |
ln -s $PWD/dyninst /dyninst
export DYNINST_C_FLAGS="-Werror" DYNINST_CXX_FLAGS="-Werror"
export DYNINST_C_COMPILER="gcc" DYNINST_CXX_COMPILER="g++"
bash /dyninst/src/docker/build.sh /dyninst/src 2
- name: Checkout Test Suite
uses: actions/checkout@v3
with:
repository: dyninst/testsuite
path: testsuite
- name: Build testsuite
run: |
cd testsuite; mkdir build; cd build
cmake .. -DDyninst_DIR=/dyninst/install/lib/cmake/Dyninst
cmake --build . --parallel 2
- name: Checkout Examples
uses: actions/checkout@v3
with:
repository: dyninst/examples
path: examples
- name: Build examples
run: |
cd examples; mkdir build; cd build
cmake .. -DDyninst_DIR=/dyninst/install/lib/cmake/Dyninst
cmake --build . --parallel 2
- name: Checkout External Tests
uses: actions/checkout@v3
with:
repository: dyninst/external-tests
path: external-tests
- name: Build external tests
run: |
cd external-tests; mkdir build; cd build
cmake .. -DDyninst_DIR=/dyninst/install/lib/cmake/Dyninst
cmake --build . --parallel 2
- name: Run tests
run: |
cd external-tests/build
ctest .
clang-build:
permissions:
packages: read
strategy:
fail-fast: true
matrix:
os: ['ubuntu-20.04', 'ubuntu-22.04', 'ubuntu-23.04', 'ubuntu-23.10', 'ubuntu-24.04']
runs-on: ubuntu-latest
container:
image: ghcr.io/dyninst/amd64/${{ matrix.os }}-base:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
name: clang on ${{ matrix.os }}
steps:
- name: Checkout Dyninst
uses: actions/checkout@v3
with:
path: dyninst/src
- name: Build Dyninst
run: |
ln -s $PWD/dyninst /dyninst
export DYNINST_C_FLAGS="-Werror" DYNINST_CXX_FLAGS="-Werror"
export DYNINST_C_COMPILER="clang" DYNINST_CXX_COMPILER="clang++"
bash /dyninst/src/docker/build.sh /dyninst/src 2