Skip to content

Revert "Documentdb sync 2025-01-23" #9

Revert "Documentdb sync 2025-01-23"

Revert "Documentdb sync 2025-01-23" #9

Workflow file for this run

name: SQL Tests
run-name: ${{ github.event.pull_request.title || '' }}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches:
- 'main'
paths-ignore:
- 'docs/**'
- '.devcontainer/**'
- '*.md'
pull_request:
types: [opened, reopened, synchronize]
paths-ignore:
- 'docs/**'
- '.devcontainer/**'
- '*.md'
jobs:
ubuntu_build:
runs-on: ${{ matrix.os_name }}
name: ${{ matrix.os_name }} build for PG ${{ matrix.pg_version }}
strategy:
fail-fast: false
matrix:
pg_version:
- 15
- 16
os_name:
- ubuntu-20.04
- ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install package dependencies
run: |
export PG_VERSION=${{ matrix.pg_version }}
export CITUS_VERSION=12.1
export LC_ALL=en_US.UTF-8
export LANGUAGE=en_US
export LC_COLLATE=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
# Create the file repository configuration:
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main 16" > /etc/apt/sources.list.d/pgdg.list'
curl -4sSf https://packagecloud.io/install/repositories/citusdata/community/script.deb.sh | sudo bash
# Import the repository signing key:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
wget \
curl \
sudo \
gnupg2 \
lsb-release \
tzdata \
build-essential \
pkg-config \
cmake \
git \
postgresql-${PG_VERSION} \
postgresql-server-dev-${PG_VERSION} \
libpq-dev \
libicu-dev \
libkrb5-dev \
postgresql-${PG_VERSION}-cron \
postgresql-${PG_VERSION}-pgvector \
postgresql-${PG_VERSION}-postgis-3 \
postgresql-${PG_VERSION}-rum \
postgresql-${PG_VERSION}-citus-${CITUS_VERSION}
export CLEAN_SETUP=1
export INSTALL_DEPENDENCIES_ROOT=/tmp/install_setup
mkdir -p /tmp/install_setup
cp ./scripts/* /tmp/install_setup
sudo INSTALL_DEPENDENCIES_ROOT=$INSTALL_DEPENDENCIES_ROOT MAKE_PROGRAM=cmake /tmp/install_setup/install_setup_libbson.sh
sudo INSTALL_DEPENDENCIES_ROOT=$INSTALL_DEPENDENCIES_ROOT /tmp/install_setup/install_setup_pcre2.sh
sudo INSTALL_DEPENDENCIES_ROOT=$INSTALL_DEPENDENCIES_ROOT /tmp/install_setup/install_setup_intel_decimal_math_lib.sh
sudo INSTALL_DEPENDENCIES_ROOT=$INSTALL_DEPENDENCIES_ROOT /tmp/install_setup/install_citus_indent.sh
- name: Configure, Build and Install HelioDB
run: |
make
sudo make install
- name: Run Tests
run: |
export LC_ALL=en_US.UTF-8
export LANGUAGE=en_US
export LC_COLLATE=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
make check
- name: Citus Indent
run: |
citus_indent --check || (echo ""; echo "citus_indent failed, refer to CONTRIBUTING.md on how to use citus_indent"; exit 1)