Skip to content

Commit

Permalink
Add arm for pgvectorscale
Browse files Browse the repository at this point in the history
  • Loading branch information
cevian committed Jun 25, 2024
1 parent 6851c2c commit 7768d51
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
9 changes: 6 additions & 3 deletions build_scripts/shared_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,10 @@ __SQL__
}

install_pgvectorscale() {
local version="$1" pg pkg=pgvectorscale unsupported_reason
local version="$1" pg pkg=pgvectorscale unsupported_reason arch_deb="$ARCH"
if [ "$arch_deb" = aarch64 ]; then
arch_deb=arm64
fi

for pg in $(available_pg_versions); do
unsupported_reason="$(supported_pgvectorscale "$pg" "$version")"
Expand All @@ -269,10 +272,10 @@ install_pgvectorscale() {
--fail \
--location \
--output artifact.zip \
"https://github.com/timescale/pgvectorscale/releases/download/$version/pgvectorscale-$version-pg${pg}.zip"
"https://github.com/timescale/pgvectorscale/releases/download/$version/pgvectorscale-$version-pg${pg}-${arch_deb}.zip"

unzip artifact.zip
dpkg --install --log=/build/pgvectorscale/dpkg.log --admindir=/build/pgvectorscale/ --force-depends --force-not-root --force-overwrite pgvectorscale*amd64.deb
dpkg --install --log=/build/pgvectorscale/dpkg.log --admindir=/build/pgvectorscale/ --force-depends --force-not-root --force-overwrite pgvectorscale*${arch_deb}.deb
)
done
}
2 changes: 0 additions & 2 deletions build_scripts/shared_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,6 @@ supported_promscale() {
supported_pgvectorscale() {
local pg="$1" ver="$2"

if [ "$ARCH" != amd64 ]; then echo "unsupported arch $ARCH"; return; fi

# just attempt the build for main/master/or other branch build
if [[ "$ver" = main || "$ver" = master || "$ver" =~ [a-z_-]*/[A-Za-z0-9_-]* ]]; then
return
Expand Down
1 change: 0 additions & 1 deletion build_scripts/versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,5 @@ toolkit:

pgvectorscale:
0.2.0:
arch: amd64
pg-min: 15
pg-max: 16
5 changes: 0 additions & 5 deletions cicd/shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,6 @@ check_pgvectorscale() {
if [ -z "$PGVECTORSCALE_VERSIONS" ]; then return; fi
local pg="$1" lib="$2" found=false

if [ "$ARCH" != amd64 ]; then
# no arm64 pgvectorscale packages
return
fi

# record an empty version so we'll get an empty table row if we don't have any versions
record_ext_version pgvectorscale "$pg" ""

Expand Down

0 comments on commit 7768d51

Please sign in to comment.