-
Notifications
You must be signed in to change notification settings - Fork 56
74 lines (65 loc) · 2.08 KB
/
pgrx_test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Run PGRX tests
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
jobs:
tester:
runs-on: ${{ matrix.platform.runs_on }}
strategy:
fail-fast: false
matrix:
pgvector:
- version: 0.7.4
pg:
- major: 13
minor: 16
- major: 14
minor: 13
- major: 15
minor: 7
- major: 16
minor: 3
- major: 17
minor: 0
platform:
- type: amd64
runs_on: ubuntu-latest
rustflags: '-C target-feature=+avx2,+fma'
- type: arm64
runs_on: cloud-image-runner-arm64
rustflags: ''
env:
PG_SRC_DIR: pgbuild
PG_INSTALL_DIR: postgresql
MAKE_JOBS: 6
PG_CONFIG_PATH: postgresql/bin/pg_config
TAG: ${{ github.event.inputs.tag }}
TAG_DIR: pgvectorscale
TAG_GIT_REF: ${{ github.event.inputs.TAG_GIT_REF == '' && github.event.inputs.tag || github.event.inputs.TAG_GIT_REF}}
steps:
- name: Checkout pgvectorscale
uses: actions/checkout@v4
- name: Install Linux Packages
uses: ./.github/actions/install-packages
- name: Install PostgreSQL ${{ matrix.pg.major }}
uses: ./.github/actions/install-postgres
with:
pg-version: ${{ matrix.pg.major }}.${{ matrix.pg.minor }}
pg-src-dir: ~/${{ env.PG_SRC_DIR }}
pg-install-dir: ~/${{ env.PG_INSTALL_DIR }}
- name: Install pgvector ${{ matrix.pgvector.version }}
uses: ./.github/actions/install-pgvector
with:
pgvector-version: ${{ matrix.pgvector.version }}
pg-install-dir: ~/${{ env.PG_INSTALL_DIR }}
- name: Install pgrx
uses: ./.github/actions/install-pgrx
with:
pg-install-dir: ~/${{ env.PG_INSTALL_DIR }}
pgrx-version: 0.12.5
- name: Run tests
id: runtests
run: |
cd pgvectorscale
${{ matrix.platform.rustflags != '' && format('export RUSTFLAGS="{0}"', matrix.platform.rustflags) || '' }}
cargo pgrx test -- pg${{ matrix.pg.major }}