Skip to content

Commit b1b95a0

Browse files
committed
Add workflow for running pg_ladybug on timescaledb
1 parent 11800f1 commit b1b95a0

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

Diff for: .github/workflows/pg_ladybug.yaml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: pg_ladybug
2+
"on":
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
- prerelease_test
8+
jobs:
9+
pg_ladybug:
10+
runs-on: ubuntu-latest
11+
env:
12+
CC: clang-19
13+
CXX: clang++-19
14+
LLVM_CONFIG: llvm-config-19
15+
16+
steps:
17+
18+
- name: Install dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get purge llvm-16 llvm-18 clang-16 clang-18
22+
sudo apt-get install llvm-19 llvm-19-dev clang-19 libclang-19-dev clang-tidy-19 libcurl4-openssl-dev postgresql-server-dev-16
23+
sudo ln -sf /usr/bin/clang-tidy-19 /usr/bin/clang-tidy
24+
25+
- name: Checkout timescaledb
26+
uses: actions/checkout@v4
27+
28+
- name: Checkout pg_ladybug
29+
uses: actions/checkout@v4
30+
with:
31+
repository: 'timescale/pg_ladybug'
32+
path: 'pg_ladybug'
33+
ref: '0.1.0'
34+
35+
- name: build pg_ladybug
36+
run: |
37+
cd pg_ladybug
38+
cmake -S . -B build
39+
make -C build
40+
sudo make -C build install
41+
42+
- name: Verify pg_ladybug
43+
run: |
44+
clang-tidy --load /usr/local/lib/libPostgresCheck.so --checks='-*,postgres-*' --list-checks | grep postgres
45+
46+
- name: Configure timescaledb
47+
run: |
48+
./bootstrap -DCMAKE_BUILD_TYPE=Debug -DLINTER=ON -DCLANG_TIDY_EXTRA_OPTS=",-*,postgres-*;--load=/usr/local/lib/libPostgresCheck.so"
49+
50+
- name: Build timescaledb
51+
run: |
52+
make -C build
53+

0 commit comments

Comments
 (0)