Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Ubuntu PostgresML Python package #28

Ubuntu PostgresML Python package

Ubuntu PostgresML Python package #28

name: Ubuntu PostgresML Python package
on:
workflow_dispatch:
inputs:
packageVersion:
default: "2.10.0"
workflow_call:
inputs:
packageVersion:
type: string
required: true
default: "2.10.0"
jobs:
postgresml-python:
strategy:
fail-fast: false # Let the other job finish
matrix:
os: ["buildjet-4vcpu-ubuntu-2204", "buildjet-4vcpu-ubuntu-2204-arm"]
ubuntu_version: ["20.04", "22.04", "24.04"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Build and release package
env:
AWS_ACCESS_KEY_ID: ${{ vars.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
UBUNTU_VERSION: ${{ matrix.ubuntu_version }}
run: |
sudo apt update
sudo apt install -y python3-dev python3-pip python3-virtualenv software-properties-common python3-wheel-whl python3-pip-whl python3-setuptools-whl
# Add deadsnakes PPA for all Python versions
sudo add-apt-repository -y ppa:deadsnakes/ppa
sudo apt update
# Install Python 3.11 for all Ubuntu versions for better dependency compatibility
sudo apt install -y python3.11 python3.11-dev python3.11-venv
# Ensure pip is updated
python3 -m pip install --upgrade pip setuptools wheel
# Install PyTorch globally before running the build script
sudo python3 -m pip install torch
bash packages/postgresml-python/release.sh ${{ inputs.packageVersion }} ${{ matrix.ubuntu_version }}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.