Skip to content

Add .editorconfig and standardize whitespace #343

Add .editorconfig and standardize whitespace

Add .editorconfig and standardize whitespace #343

Workflow file for this run

name: pg_duckdb Build and Test
on:
push:
paths:
- 'src/**'
- 'test/**'
- 'include/**'
- 'sql/**'
- Makefile
- Makefile.global
- duckdb.control
- third_party/duckdb
- '.github/workflows/**'
jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
version: [REL_16_STABLE]
runs-on: ${{ matrix.os }}
steps:
- name: Test details
run: echo Build and test pg_duckdb on ${{ matrix.os }} with PostgreSQL ${{ matrix.version }} branch
- name: Install build deps
run: |
sudo apt-get update -qq
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo apt-get install -y build-essential libreadline-dev zlib1g-dev flex bison libxml2-dev libxslt-dev \
libssl-dev libxml2-utils xsltproc pkg-config libc++-dev libc++abi-dev libglib2.0-dev libtinfo5 cmake \
libstdc++-12-dev
- name: ccache
uses: hendrikmuhs/[email protected]
with:
create-symlink: true
- name: Checkout pg_duckdb extension code
uses: actions/checkout@v4
with:
path: duckdb
- name: Checkout and build PostgreSQL code
run: |
rm -rf postgres
git clone --branch ${{ matrix.version }} --single-branch --depth 1 https://github.com/postgres/postgres.git
pushd postgres
git branch
./configure --prefix=$PWD/inst/ --enable-cassert --enable-debug --with-openssl --with-icu --with-libxml
make -j8 install
- name: Build and test pg_duckdb extension
id: regression-tests
run: |
export PATH="${PWD}/postgres/inst/bin:$PATH"
pushd duckdb
git submodule update --init --recursive
make
make install
make installcheck
popd
- name: Print regression.diffs if regression tests failed
if: failure() && steps.regression-tests.outcome != 'success'
run: |
cat duckdb/test/regression/regression.diffs