File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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,10 @@ 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 | sed -n 's/.*version \( [0-9]*\) .*/\1 /p' ) \
61+ && echo "Detected LLVM version: ${LLVM_VER}" \
62+ && ln -sf /usr/bin/clang "/usr/bin/clang-${LLVM_VER}"
6363
6464# Download, verify and extract PostGIS source code
6565RUN wget -O postgis.tar.gz "https://github.com/postgis/postgis/archive/${POSTGIS_VERSION}.tar.gz" \
@@ -72,14 +72,13 @@ RUN wget -O postgis.tar.gz "https://github.com/postgis/postgis/archive/${POSTGIS
7272 --strip-components 1 \
7373 && rm postgis.tar.gz
7474
75- # Build PostGIS - with Link Time Optimization (LTO) enabled
75+ # Build PostGIS
7676RUN cd /usr/src/postgis \
7777 && gettextize \
7878 && ./autogen.sh \
7979 && ./configure \
80- --enable-lto \
8180 && make -j$(nproc) \
82- && make install
81+ && make install
8382
8483# Cleanup
8584RUN rm -rf /usr/src/postgis \
You can’t perform that action at this time.
0 commit comments