-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (57 loc) · 1.47 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
name: Builds
on:
pull_request:
branches:
- master
jobs:
gcc:
permissions:
packages: read
runs-on: ubuntu-latest
container:
image: ghcr.io/dyninst/amd64/ubuntu-20.04:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
name: gcc
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: tests
- name: Build tests
run: |
cd tests
flags="-DCMAKE_C_FLAGS='-Werror' -DCMAKE_CXX_FLAGS='-Werror'"
cmake . -DDyninst_DIR=/dyninst/install/lib/cmake/Dyninst $flags
cmake --build .
- name: Run tests
run: |
cd tests
ctest .
clang:
permissions:
packages: read
runs-on: ubuntu-latest
container:
image: ghcr.io/dyninst/amd64/ubuntu-20.04:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
name: clang
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: tests
- name: Build tests
run: |
cd tests
flags="-DCMAKE_C_FLAGS='-Werror' -DCMAKE_CXX_FLAGS='-Werror' "
flags="$flags -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ "
cmake . -DDyninst_DIR=/dyninst/install/lib/cmake/Dyninst $flags
cmake --build .
- name: Run tests
run: |
cd tests
ctest .