Skip to content

Commit

Permalink
Fix DEB packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
cevian committed Jun 6, 2024
1 parent 3a8dd44 commit c288cad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deb-packager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
pg-install-dir: ~/${{ env.PG_INSTALL_DIR }}

- name: Checkout ${{ env.TAG }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: timescale/pgvectorscale
ref: '${{ env.TAG }}'
Expand All @@ -71,5 +71,5 @@ jobs:
- name: Upload deb as Artifact
uses: actions/upload-artifact@v4
with:
name: vector-${{ env.TAG }}-pg${{ env.PG_VER }}
name: pgvectorscale-${{ env.TAG }}-pg${{ env.PG_VER }}
path: pkgdump/pgvectorscale-*${{ env.TAG }}*.deb
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ PG_REGRESS_OPTS_EXTRA=--create-role=superuser,tsdbadmin,test_role_1 --launcher=
export TEST_OUTPUT_DIR:=$(ROOTDIR)/test_output
export PG_ABS_SRCDIR:=$(ROOTDIR)/test
export TEST_DBNAME:=regression
export RUSTFLAGS:=-C target-feature=+avx2,+fma

### default collation settings on Cloud is C.UTF-8
PG_DEFAULT_REGRESS_LOCALE=$(shell uname | grep -q 'Darwin' && echo 'en_US.UTF-8' || echo 'C.UTF-8')
Expand Down
4 changes: 2 additions & 2 deletions scripts/package-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ Depends: postgresql-$pg
Description: pgvectorscale for speeding up ANN search
EOF

echo "target/release/pgvectorscale-pg$pg/$libdir/* usr/lib/postgresql/$pg/lib/" >"${BASEDIR}"/debian/pgvectorscale-postgresql-"$pg".install
echo "target/release/pgvectorscale-pg$pg/$sharedir/* usr/share/postgresql/$pg/" >>"${BASEDIR}"/debian/pgvectorscale-postgresql-"$pg".install
echo "target/release/vectorscale-pg$pg/$libdir/* usr/lib/postgresql/$pg/lib/" >"${BASEDIR}"/debian/pgvectorscale-postgresql-"$pg".install
echo "target/release/vectorscale-pg$pg/$sharedir/* usr/share/postgresql/$pg/" >>"${BASEDIR}"/debian/pgvectorscale-postgresql-"$pg".install
done

dpkg-buildpackage --build=binary --no-sign --post-clean
Expand Down

0 comments on commit c288cad

Please sign in to comment.