File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed
Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -14,23 +14,23 @@ jobs:
1414 runs-on : ubuntu-latest
1515 steps :
1616 - name : Checkout repository
17- uses : actions/checkout@v4
17+ uses : actions/checkout@v6
1818
1919 - name : Set up QEMU
20- uses : docker/setup-qemu-action@v3
20+ uses : docker/setup-qemu-action@v4
2121
2222 - name : Set up Docker Buildx
23- uses : docker/setup-buildx-action@v3
23+ uses : docker/setup-buildx-action@v4
2424
2525 - name : Login to DockerHub
26- uses : docker/login-action@v3
26+ uses : docker/login-action@v4
2727 with :
2828 username : ${{ secrets.DOCKERHUB_USERNAME }}
2929 password : ${{ secrets.DOCKERHUB_TOKEN }}
3030
3131 - name : Docker meta
3232 id : meta
33- uses : docker/metadata-action@v5
33+ uses : docker/metadata-action@v6
3434 with :
3535 images : |
3636 creowave/postgres
5151 echo "timescaledb_version=$TIMESCALEDB_VERSION" >> $GITHUB_OUTPUT
5252
5353 - name : Build and push Docker image
54- uses : docker/build-push-action@v5
54+ uses : docker/build-push-action@v7
5555 with :
5656 context : .
5757 file : ./Dockerfile
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ RUN apk add --no-cache --virtual .postgis-fetch-deps \
2929 proj-dev \
3030 proj-util \
3131 sfcgal-dev \
32- llvm-dev \
3332 clang \
3433 autoconf \
3534 automake \
@@ -57,9 +56,9 @@ RUN apk add --no-cache --virtual .postgis-fetch-deps \
5756 protobuf-c \
5857 ca-certificates
5958
60- # Symlink clang and llvm-lto to ensure compatibility with PostGIS build scripts
61- RUN ln -s /usr/bin/clang /usr/bin/clang-19 \
62- && mkdir -p /usr/lib/llvm19/bin && ln -s /usr/bin/llvm-lto /usr/lib/llvm19/ bin/llvm-lto
59+ # Symlink clang to the versioned name expected by PostgreSQL's PGXS build system
60+ RUN LLVM_VER=$(clang --version | head -1 | grep -oP ' \d +' | head -1) \
61+ && ln -sf /usr/bin/clang " /usr/bin/clang-${LLVM_VER}"
6362
6463# Download, verify and extract PostGIS source code
6564RUN wget -O postgis.tar.gz "https://github.com/postgis/postgis/archive/${POSTGIS_VERSION}.tar.gz" \
@@ -72,14 +71,13 @@ RUN wget -O postgis.tar.gz "https://github.com/postgis/postgis/archive/${POSTGIS
7271 --strip-components 1 \
7372 && rm postgis.tar.gz
7473
75- # Build PostGIS - with Link Time Optimization (LTO) enabled
74+ # Build PostGIS
7675RUN cd /usr/src/postgis \
7776 && gettextize \
7877 && ./autogen.sh \
7978 && ./configure \
80- --enable-lto \
8179 && make -j$(nproc) \
82- && make install
80+ && make install
8381
8482# Cleanup
8583RUN rm -rf /usr/src/postgis \
You can’t perform that action at this time.
0 commit comments