Skip to content

Commit 060f2f8

Browse files
committed
github actions: Improve abi-compare check
* Install universal-ctags so abi-dumper works correctly. * Compile with -Og.
1 parent 9c5a83e commit 060f2f8

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/llvm-tests.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
pull_request:
1414
paths:
1515
- 'llvm/**'
16+
- '.github/workflows/llvm-tests.yml'
1617

1718
jobs:
1819
build_llvm:
@@ -61,7 +62,15 @@ jobs:
6162
- name: Install Ninja
6263
uses: llvm/actions/install-ninja@master
6364
- name: Install abi-compliance-checker
64-
run: sudo apt-get install abi-dumper
65+
run: |
66+
sudo apt-get install abi-dumper autoconf pkg-config
67+
- name: Install universal-ctags
68+
run: |
69+
git clone https://github.com/universal-ctags/ctags.git
70+
cd ctags
71+
./autogen.sh
72+
./configure
73+
sudo make install
6574
- name: Download source code
6675
uses: llvm/actions/get-llvm-project-src@master
6776
with:
@@ -71,7 +80,7 @@ jobs:
7180
run: |
7281
mkdir build
7382
cd build
74-
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD="" -DLLVM_BUILD_LLVM_DYLIB=ON ../llvm
83+
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD="" -DLLVM_BUILD_LLVM_DYLIB=ON -DCMAKE_C_FLAGS_DEBUG="-g -Og" -DCMAKE_CXX_FLAGS_DEBUG="-g -Og" ../llvm
7584
- name: Build
7685
run: ninja -C build libLLVM-${{ env.release_major }}.so
7786
- name: Dump ABI

0 commit comments

Comments
 (0)