6
6
description : ' Tag'
7
7
required : true
8
8
default : ' '
9
- PG :
10
- description : ' PG major version. Default: 16'
11
- required : false
12
- default : ' 16'
13
- PG_MIN :
14
- description : ' PG minor version. Default: 1'
15
- required : false
16
- default : ' 1'
17
9
TAG_GIT_REF :
18
10
description : ' Tag git Ref (leave empty for same as Tag)'
19
11
required : false
20
12
default : ' '
21
13
22
14
jobs :
23
15
packager :
24
- runs-on : ${{ matrix.runs_on }}
16
+ runs-on : ${{ matrix.platform. runs_on }}
25
17
26
18
strategy :
27
19
fail-fast : false
28
20
matrix :
29
- platform : [ amd64, arm64 ]
30
- include :
31
- - platform : amd64
21
+ pg :
22
+ - major : 15
23
+ minor : 7
24
+ - major : 16
25
+ minor : 3
26
+ platform :
27
+ - type : amd64
32
28
runs_on : ubuntu-latest
33
29
rustflags : ' -C target-feature=+avx2,+fma'
34
- - platform : arm64
30
+ - type : arm64
35
31
runs_on : cloud-image-runner-arm64
36
32
rustflags : ' '
37
33
38
34
env :
39
- PG_VER : ${{ github.event.inputs.PG }}
40
- PG_MIN_VER : ${{ github.event.inputs.PG_MIN }}
41
35
PG_SRC_DIR : pgbuild
42
36
PG_INSTALL_DIR : postgresql
43
37
MAKE_JOBS : 6
@@ -57,10 +51,10 @@ jobs:
57
51
run : |
58
52
sudo apt-get install dpkg-dev debhelper build-essential
59
53
60
- - name : Install PostgreSQL ${{ env.PG_VER }}
54
+ - name : Install PostgreSQL ${{ matrix.pg.major }}
61
55
uses : ./.github/actions/install-postgres
62
56
with :
63
- pg-version : ${{ env.PG_VER }}.${{ env.PG_MIN_VER }}
57
+ pg-version : ${{ matrix.pg.major }}.${{ matrix.pg.minor }}
64
58
pg-src-dir : ~/${{ env.PG_SRC_DIR }}
65
59
pg-install-dir : ~/${{ env.PG_INSTALL_DIR }}
66
60
@@ -81,13 +75,13 @@ jobs:
81
75
id : debbuild
82
76
run : |
83
77
export PATH=~/${{ env.PG_INSTALL_DIR }}/bin:$PATH
84
- (cd ${{ env.TAG_DIR }} && ${{ matrix.rustflags != '' && format('RUSTFLAGS="{0}"', matrix.rustflags) || '' }} make package)
85
- bash scripts/package-deb.sh "${{ env.TAG }}" "${PWD}/${{ env.TAG_DIR }}" "$RUNNER_OS" "${{ env.PG_VER }}"
78
+ (cd ${{ env.TAG_DIR }} && ${{ matrix.platform. rustflags != '' && format('RUSTFLAGS="{0}"', matrix.platform .rustflags) || '' }} make package)
79
+ bash scripts/package-deb.sh "${{ env.TAG }}" "${PWD}/${{ env.TAG_DIR }}" "$RUNNER_OS" "${{ matrix.pg.major }}"
86
80
87
81
# Use a GH artifact, then we can make use of the (quite limited) GH API https://docs.github.com/en/rest/actions/artifacts
88
82
# The artifact will have a TTL of 90 days
89
83
- name : Upload deb as Artifact
90
84
uses : actions/upload-artifact@v4
91
85
with :
92
- name : pgvectorscale-${{ env.TAG }}-pg${{ env.PG_VER }}-${{ matrix.platform }}
86
+ name : pgvectorscale-${{ env.TAG }}-pg${{ matrix.pg.major }}-${{ matrix.platform.type }}
93
87
path : pkgdump/pgvectorscale-*${{ env.TAG }}*.deb
0 commit comments