Skip to content

Commit 71f481a

Browse files
committed
Fix ABI checker build/tests
Signed-off-by: Neil R. Spruit <[email protected]>
1 parent b81b24e commit 71f481a

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.github/workflows/check-abi.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install dependencies
1616
run: |
1717
sudo apt update
18-
sudo apt install -y elfutils universal-ctags
18+
sudo apt install -y elfutils universal-ctags vtable-dumper
1919
- uses: actions/checkout@v2
2020
with:
2121
fetch-depth: 0 # Required due to the way Git works, without it this action won't be able to find any or the correct tags
@@ -39,19 +39,18 @@ jobs:
3939
run: |
4040
mkdir base/build
4141
cd base/build
42-
cmake -DCMAKE_BUILD_TYPE=Debug ..
42+
cmake -E env CXXFLAGS="-Og -g" cmake -DCMAKE_BUILD_TYPE=Debug ..
4343
make -j$(nproc)
4444
- name: Build debug head
4545
run: |
4646
mkdir head/build
4747
cd head/build
48-
cmake -DCMAKE_BUILD_TYPE=Debug ..
48+
cmake -E env CXXFLAGS="-Og -g" cmake -DCMAKE_BUILD_TYPE=Debug ..
4949
make -j$(nproc)
5050
- name: Download and setup abi-dumper
5151
run: |
52-
wget https://github.com/lvc/abi-dumper/archive/refs/tags/1.2.tar.gz -O abi-dumper.tar.gz
53-
tar -xzf abi-dumper.tar.gz
54-
cp abi-dumper-*/abi-dumper.pl .
52+
git clone https://github.com/lvc/abi-dumper.git abi-dumper
53+
cp abi-dumper/abi-dumper.pl .
5554
chmod +x abi-dumper.pl
5655
- name: Generate dump for base
5756
run: |
@@ -64,7 +63,7 @@ jobs:
6463
run: |
6564
./abi-dumper.pl \
6665
./head/build/lib/libze_loader.so \
67-
-lver $(cat ./head/build/VERSION) \
66+
-lver $(cat ./head/build/VERSION)-1 \
6867
-public-headers ./head/include \
6968
-o ./head.dump
7069
- name: Download and setup abi-compliance-checker
@@ -91,7 +90,7 @@ jobs:
9190
- name: Install dependencies
9291
run: |
9392
sudo apt update
94-
sudo apt install -y elfutils universal-ctags
93+
sudo apt install -y elfutils universal-ctags vtable-dumper
9594
- name: Checkout base
9695
uses: actions/checkout@v3
9796
with:
@@ -108,19 +107,18 @@ jobs:
108107
run: |
109108
mkdir base/build
110109
cd base/build
111-
cmake -DCMAKE_BUILD_TYPE=Debug ..
110+
cmake -E env CXXFLAGS="-Og -g" cmake -DCMAKE_BUILD_TYPE=Debug ..
112111
make -j$(nproc)
113112
- name: Build debug head
114113
run: |
115114
mkdir head/build
116115
cd head/build
117-
cmake -DCMAKE_BUILD_TYPE=Debug ..
116+
cmake -E env CXXFLAGS="-Og -g" cmake -DCMAKE_BUILD_TYPE=Debug ..
118117
make -j$(nproc)
119118
- name: Download and setup abi-dumper
120119
run: |
121-
wget https://github.com/lvc/abi-dumper/archive/refs/tags/1.2.tar.gz -O abi-dumper.tar.gz
122-
tar -xzf abi-dumper.tar.gz
123-
cp abi-dumper-*/abi-dumper.pl .
120+
git clone https://github.com/lvc/abi-dumper.git abi-dumper
121+
cp abi-dumper/abi-dumper.pl .
124122
chmod +x abi-dumper.pl
125123
- name: Generate dump for base
126124
run: |
@@ -133,7 +131,7 @@ jobs:
133131
run: |
134132
./abi-dumper.pl \
135133
./head/build/lib/libze_loader.so \
136-
-lver $(cat ./head/build/VERSION) \
134+
-lver $(cat ./head/build/VERSION)-1 \
137135
-public-headers ./head/include \
138136
-o ./head.dump
139137
- name: Download and setup abi-compliance-checker

0 commit comments

Comments
 (0)