forked from ROCm/dyninst
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (65 loc) · 1.84 KB
/
system-libs.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
name: Parse sys libs
on:
schedule:
- cron: '0 1 * * 1' # 1AM on Monday
workflow_dispatch:
jobs:
get-oses:
runs-on: ubuntu-latest
outputs:
all: ${{ steps.all.outputs.all }}
steps:
- name: Checkout
uses: actions/checkout@v4
- id: all
uses: ./.github/actions/os-versions
parse-system-libs:
runs-on: ubuntu-latest
needs: get-oses
strategy:
fail-fast: false
matrix:
os: ${{ fromJson(needs.get-oses.outputs.all) }}
permissions:
packages: read
container:
image: ghcr.io/dyninst/amd64/${{ matrix.os }}:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
name: System libs ${{ matrix.os }}
steps:
- name: Build parser
shell: bash
run: |
set -ex
git clone --depth=1 https://github.com/dyninst/external-tests
cd external-tests; mkdir build; cd build
cmake .. -DDyninst_ROOT=/dyninst/install
cmake --build . -t simpleParser
mv parseAPI/simpleParser /usr/bin
- name: Run parser
shell: bash
run: |
set -ex
for d in /dyninst/install/lib*; do
if [ -n "$LD_LIBRARY_PATH" ]; then
LD_LIBRARY_PATH="$d:$LD_LIBRARY_PATH"
else
LD_LIBRARY_PATH="$d"
fi
done
export LD_LIBRARY_PATH
export OMP_NUM_THREADS=2
dirs="/usr/lib /usr/lib64"
# Ignored files:
#
# *.hmac
# hash files
#
# libclang-cpp.so
# causes debuginfod to hang on fedora-37
find ${dirs} -type f -name '*.so.*' \
\! -name '*.hmac' \
\! -name 'libclang-cpp.so*' \
-print -exec /usr/bin/simpleParser {} \;