File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed
Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1414 container-image :
1515 description : ' Container image to pull from DockerHub'
1616 required : false
17+ tsdb-commit :
18+ description : ' TimescaleDB commit to use'
19+ default : ' '
20+ required : false
21+ tsdb-repo :
22+ description : ' TimescaleDB repo to use'
23+ default : ' https://github.com/timescale/timescaledb.git'
24+ required : false
1725
1826jobs :
1927 testpostgres :
5664 - name : chown Repository
5765 run : chown -R postgres .
5866
67+ - name : Build and install TimescaleDB
68+ if : ${{ inputs.tsdb-commit != '' }}
69+ run : ./tools/install-timescaledb '${{ matrix.pgversion }}' '${{ inputs.tsdb-repo }}' '${{ inputs.tsdb-commit }}'
70+
5971 # TODO After the container image contains a primed target dir, is this still worth it?
6072 # Only possible advantage is this one is per-pg-version but what's the impact?
6173 - name : Cache cargo target dir
Original file line number Diff line number Diff line change @@ -153,15 +153,18 @@ EOF
153153 # - libssl-dev
154154 # - make
155155 # - pkg-config
156+ # cmake and libkrb5-dev are needed to build TimescaleDB
156157 apt-get -qq install \
157158 build-essential \
159+ cmake \
158160 curl \
159161 debhelper \
160162 ed \
161163 fakeroot \
162164 gcc \
163165 git \
164166 gnupg \
167+ libkrb5-dev \
165168 libssl-dev \
166169 make \
167170 pkg-config \
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ git clone " $2 " timescaledb
3+ cd timescaledb
4+ git switch --detach " $3 "
5+ mkdir build
6+ cd build
7+ # this overwrites the files from the TimescaleDB package
8+ cmake .. -DUSE_OPENSSL=0 -DLINTER=0 -DCMAKE_PROGRAM_PATH=/usr/lib/postgresql/$1 /bin
9+ make install
You can’t perform that action at this time.
0 commit comments