7
7
release :
8
8
types :
9
9
- created
10
+ workflow_dispatch :
10
11
jobs :
11
12
build_wheels :
12
13
name : Build wheels on ${{ matrix.os }}
@@ -17,10 +18,10 @@ jobs:
17
18
include :
18
19
- os : macos-12
19
20
arch : x86_64
20
- deployment-target : ' 12.0 '
21
+ deployment-target : ' 10.9 '
21
22
- os : macos-latest
22
23
arch : arm64
23
- deployment-target : ' 14 .0'
24
+ deployment-target : ' 11 .0'
24
25
- os : ubuntu-latest
25
26
arch : x86_64
26
27
deployment-target : ' '
52
53
path : |
53
54
pgbuild
54
55
src/pgserver/pginstall
55
- key : ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{ hashFiles('Makefile', 'pgbuild/Makefile') }}
56
+ key : ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{
57
+ hashFiles('Makefile', 'pgbuild/Makefile', '.github/workflows/build-and-test.yml') }}
56
58
- name : Build postgres and pgvector
57
59
if : ${{ matrix.os != 'ubuntu-latest' && ! steps.restore-postgres.outputs.cache-hit }}
60
+ env :
61
+ MACOSX_DEPLOYMENT_TARGET : ${{ matrix.deployment-target }}
58
62
# this step is implied by Build wheels, but we do it here for caching before python tests run
59
63
# on ubuntu, cibuildwheel will run this step within a docker container, so it cannot use the cache this way
60
64
run : make
68
72
path : |
69
73
pgbuild
70
74
src/pgserver/pginstall
71
- key : ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{ hashFiles('Makefile', 'pgbuild/Makefile') }}
75
+ key : ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{
76
+ hashFiles('Makefile', 'pgbuild/Makefile', '.github/workflows/build-and-test.yml') }}
72
77
- name : Build wheels
73
78
env :
74
79
CIBW_ARCHS : ${{ matrix.arch }}
85
90
path : |
86
91
pgbuild
87
92
src/pgserver/pginstall
88
- key : ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{ hashFiles('Makefile', 'pgbuild/Makefile') }}
93
+ key : ${{ runner.os }}-${{ runner.arch }}-build-${{ env.cache-name }}-${{
94
+ hashFiles('Makefile', 'pgbuild/Makefile', '.github/workflows/build-and-test.yml') }}
89
95
- uses : actions/upload-artifact@v3
90
96
with :
91
97
path : wheelhouse/*.whl
0 commit comments