Skip to content

Commit

Permalink
PG17: Enable ABI on CI
Browse files Browse the repository at this point in the history
Also bump alpine images from 3.18 to 3.19 since last minor PG releases
are not available on 3.18 anymore.
  • Loading branch information
fabriziomello committed Oct 4, 2024
1 parent ae030ef commit 0cc3222
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/abi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ jobs:
pg14_abi_min: ${{ steps.config.outputs.pg14_abi_min }}
pg15_abi_min: ${{ steps.config.outputs.pg15_abi_min }}
pg16_abi_min: ${{ steps.config.outputs.pg16_abi_min }}
pg17_abi_min: ${{ steps.config.outputs.pg17_abi_min }}
pg14_latest: ${{ steps.config.outputs.pg14_latest }}
pg15_latest: ${{ steps.config.outputs.pg15_latest }}
pg16_latest: ${{ steps.config.outputs.pg16_latest }}
pg17_latest: ${{ steps.config.outputs.pg17_latest }}

steps:
- name: Checkout source code
Expand All @@ -43,7 +45,7 @@ jobs:
fail-fast: false
matrix:
dir: [ "forward", "backward" ]
pg: [ 14, 15, 16 ]
pg: [ 14, 15, 16, 17 ]
include:
- dir: backward
pg: 14
Expand Down Expand Up @@ -73,6 +75,14 @@ jobs:
pg: 16
builder: ${{ fromJson(needs.config.outputs.pg16_abi_min) }}-alpine
tester: ${{ fromJson(needs.config.outputs.pg16_latest) }}-alpine3.19
- dir: backward
pg: 17
builder: ${{ fromJson(needs.config.outputs.pg17_latest) }}-alpine3.19
tester: ${{ fromJson(needs.config.outputs.pg17_abi_min) }}-alpine
- dir: forward
pg: 17
builder: ${{ fromJson(needs.config.outputs.pg17_abi_min) }}-alpine
tester: ${{ fromJson(needs.config.outputs.pg17_latest) }}-alpine3.19

steps:

Expand Down Expand Up @@ -112,6 +122,18 @@ jobs:
docker run -i --rm -v $(pwd):/mnt -e EXTRA_PKGS="${EXTRA_PKGS}" ${TEST_IMAGE} bash <<"EOF"
apk add cmake gcc make build-base krb5-dev sudo ${EXTRA_PKGS}
apk add openssl1.1-compat-dev || apk add openssl-dev
# Force tzdata 2024a for PG17
apk list --installed tzdata | grep '2024b' > /dev/null
if [ $? -eq 0 && ${{matrix.pq}} -q 17 ]; then
apk add lzip
cd /root
wget https://data.iana.org/time-zones/releases/tzdb-2024a.tar.lz
lzip -d -c tzdb-2024a.tar.lz | tar -xvf -
cd tzdb-2024a
make TZDIR="/usr/share/zoneinfo" install
fi
cd /mnt
cp build_abi/install_ext/* `pg_config --sharedir`/extension/
cp build_abi/install_lib/* `pg_config --pkglibdir`
Expand Down

0 comments on commit 0cc3222

Please sign in to comment.