mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-06 05:51:21 +08:00
34 lines
1008 B
YAML
34 lines
1008 B
YAML
name: build
|
|
on: [push, pull_request]
|
|
jobs:
|
|
ubuntu:
|
|
runs-on: ${{ matrix.os }}
|
|
if: ${{ !startsWith(github.ref_name, 'mac') && !startsWith(github.ref_name, 'windows') }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- postgres: 16
|
|
os: ubuntu-24.04-arm
|
|
- postgres: 14
|
|
os: ubuntu-22.04-arm
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ankane/setup-postgres@v1
|
|
with:
|
|
postgres-version: ${{ matrix.postgres }}
|
|
dev-files: true
|
|
- run: make
|
|
env:
|
|
PG_CFLAGS: -DUSE_ASSERT_CHECKING -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare
|
|
- run: |
|
|
export PG_CONFIG=`which pg_config`
|
|
sudo --preserve-env=PG_CONFIG make install
|
|
- run: make installcheck
|
|
- if: ${{ failure() }}
|
|
run: cat regression.diffs
|
|
- run: |
|
|
sudo apt-get update
|
|
sudo apt-get install libipc-run-perl
|
|
- run: make prove_installcheck
|