🌐 AI搜索 & 代理 主页
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
jobs:
tests:
runs-on: buildjet-16vcpu-ubuntu-2204
runs-on: buildjet-4vcpu-ubuntu-2204
defaults:
run:
working-directory: pgml-extension
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/ubuntu-packages-and-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ jobs:
strategy:
fail-fast: false # Let the other job finish
matrix:
os: ["buildjet-16vcpu-ubuntu-2204", "buildjet-16vcpu-ubuntu-2204-arm"]
os: ["buildjet-4vcpu-ubuntu-2204", "buildjet-8vcpu-ubuntu-2204-arm"]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: pgml-extension
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -28,6 +25,16 @@ jobs:
with:
working-directory: pgml-extension
command: version
- name: Cache artifacts
uses: buildjet/cache@v3
with:
path: pgml-extension/target
key: buildjet-pgml-extension-artifacts-1 # Change this when dependencies change
- name: Cache pgrx
uses: buildjet/cache@v3
with:
path: ~/.cargo
key: buildjet-pgml-extension-pgrx-2 # Change this when dependencies change
- name: Install dependencies
env:
DEBIAN_FRONTEND: noninteractive
Expand Down Expand Up @@ -140,6 +147,7 @@ jobs:
postgresml:
needs: postgresml-pgml
strategy:
fail-fast: false # Let the other job finish
matrix:
os: ["ubuntu-22.04"]
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -183,6 +191,7 @@ jobs:
- postgresml
- postgresml-dashboard
strategy:
fail-fast: false # Let the other job finish
matrix:
os: ["buildjet-4vcpu-ubuntu-2204"]
runs-on: ${{ matrix.os }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu-postgresml-python-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
postgresml-python:
strategy:
fail-fast: false # Let the other job finish
matrix:
os: ["buildjet-4vcpu-ubuntu-2204", "buildjet-4vcpu-ubuntu-2204-arm"]
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 2 additions & 0 deletions packages/postgresml-dashboard/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ mkdir -p "$deb_dir"

cp -R ${SCRIPT_DIR}/* "$deb_dir"
rm "$deb_dir/build.sh"
rm "$deb_dir/release.sh"


( cd ${SCRIPT_DIR}/../../pgml-dashboard && \
cargo build --release && \
Expand Down
4 changes: 2 additions & 2 deletions packages/postgresml-dashboard/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ else
export ARCH=arm64
fi

if ! which dpkg-deb; then
if ! which deb-s3; then
curl -sLO https://github.com/deb-s3/deb-s3/releases/download/0.11.4/deb-s3-0.11.4.gem
sudo gem install deb-s3-0.11.4.gem
dpkg-deb --version
deb-s3
fi

function package_name() {
Expand Down
1 change: 1 addition & 0 deletions packages/postgresml-python/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mkdir -p "$deb_dir"

cp -R ${SCRIPT_DIR}/* "$deb_dir"
rm "$deb_dir/build.sh"
rm "$deb_dir/release.sh"

(cat ${SCRIPT_DIR}/DEBIAN/control | envsubst) > "$deb_dir/DEBIAN/control"
(cat ${SCRIPT_DIR}/DEBIAN/postinst | envsubst '${PGVERSION}') > "$deb_dir/DEBIAN/postinst"
Expand Down
4 changes: 2 additions & 2 deletions packages/postgresml-python/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ if [[ -z "$package_version" ]]; then
exit 1
fi

if ! which dpkg-deb; then
if ! which deb-s3; then
curl -sLO https://github.com/deb-s3/deb-s3/releases/download/0.11.4/deb-s3-0.11.4.gem
sudo gem install deb-s3-0.11.4.gem
dpkg-deb --version
deb-s3
fi

sudo apt install python3-pip python3 python3-virtualenv -y
Expand Down
1 change: 1 addition & 0 deletions packages/postgresml/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ mkdir -p "$deb_dir"

cp -R ${SCRIPT_DIR}/* "$deb_dir"
rm "$deb_dir/build.sh"
rm "$deb_dir/release.sh"

(cat ${SCRIPT_DIR}/DEBIAN/control | envsubst) > "$deb_dir/DEBIAN/control"
(cat ${SCRIPT_DIR}/DEBIAN/postinst | envsubst) > "$deb_dir/DEBIAN/postinst"
Expand Down
4 changes: 2 additions & 2 deletions packages/postgresml/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ if [[ -z "$package_version" ]]; then
exit 1
fi

if ! which dpkg-deb; then
if ! which deb-s3; then
curl -sLO https://github.com/deb-s3/deb-s3/releases/download/0.11.4/deb-s3-0.11.4.gem
sudo gem install deb-s3-0.11.4.gem
dpkg-deb --version
deb-s3
fi

function package_name() {
Expand Down
4 changes: 2 additions & 2 deletions packages/postgresql-pgml/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ else
export ARCH=arm64
fi

if ! which dpkg-deb; then
if ! which deb-s3; then
curl -sLO https://github.com/deb-s3/deb-s3/releases/download/0.11.4/deb-s3-0.11.4.gem
sudo gem install deb-s3-0.11.4.gem
dpkg-deb --version
deb-s3
fi

extension_dir="${SCRIPT_DIR}/../../pgml-extension"
Expand Down
3 changes: 1 addition & 2 deletions pgml-extension/docker/postgresml/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM nvidia/cuda:12.1.1-devel-ubuntu22.04
ENV PATH="/usr/local/cuda/bin:${PATH}"
ARG POSTGRESML_VERSION=2.7.4-1
RUN apt update && \
apt install -y \
lsb-release \
Expand All @@ -16,7 +15,7 @@ RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | te

ENV TZ=UTC
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update -y && apt install git postgresml-15=${POSTGRESML_VERSION} postgresml-dashboard -y
RUN apt update -y && apt install git postgresml-15 postgresml-dashboard -y
RUN git clone --branch v0.4.4 https://github.com/pgvector/pgvector && \
cd pgvector && \
echo "trusted = true" >> vector.control && \
Expand Down