mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-01 02:02:10 +08:00
62 lines
2.0 KiB
YAML
62 lines
2.0 KiB
YAML
name: build
|
|
on: [push, pull_request]
|
|
jobs:
|
|
ubuntu:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ !startsWith(github.ref_name, 'mac') && !startsWith(github.ref_name, 'windows') }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
postgres: [15, 14, 13, 12, 11]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: ankane/setup-postgres@v1
|
|
with:
|
|
postgres-version: ${{ matrix.postgres }}
|
|
dev-files: true
|
|
- run: make
|
|
- 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
|
|
mac:
|
|
runs-on: macos-latest
|
|
if: ${{ !startsWith(github.ref_name, 'windows') }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: ankane/setup-postgres@v1
|
|
with:
|
|
postgres-version: 14
|
|
- run: make
|
|
- run: make install
|
|
- run: make installcheck
|
|
- if: ${{ failure() }}
|
|
run: cat regression.diffs
|
|
- run: |
|
|
brew install cpanm
|
|
cpanm --notest IPC::Run
|
|
wget -q https://github.com/postgres/postgres/archive/refs/tags/REL_14_5.tar.gz
|
|
tar xf REL_14_5.tar.gz
|
|
- run: make prove_installcheck PROVE_FLAGS="-I ./postgres-REL_14_5/src/test/perl" PERL5LIB="/Users/runner/perl5/lib/perl5"
|
|
windows:
|
|
runs-on: windows-latest
|
|
if: ${{ !startsWith(github.ref_name, 'mac') }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: ankane/setup-postgres@v1
|
|
with:
|
|
postgres-version: 14
|
|
- run: |
|
|
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
|
nmake /NOLOGO /F Makefile.win
|
|
nmake /NOLOGO /F Makefile.win install
|
|
nmake /NOLOGO /F Makefile.win installcheck
|
|
nmake /NOLOGO /F Makefile.win clean
|
|
shell: cmd
|