File tree 3 files changed +4
-7
lines changed
3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
1
[target .'cfg(target_os="macos")' ]
2
2
# Postgres symbols won't be available until runtime
3
3
rustflags = [" -Clink-arg=-Wl,-undefined,dynamic_lookup" ]
4
+
5
+ [target .'cfg(any(target_arch = "x86", target_arch = "x86_64"))' ]
6
+ rustflags = [" -Ctarget-feature=+avx2,+fma" ]
Original file line number Diff line number Diff line change 32
32
platform :
33
33
- type : amd64
34
34
runs_on : ubuntu-latest
35
- rustflags : ' -C target-feature=+avx2,+fma'
36
35
- type : arm64
37
36
runs_on : cloud-image-runner-arm64
38
- rustflags : ' '
39
37
40
38
env :
41
39
PG_SRC_DIR : pgbuild
81
79
id : debbuild
82
80
run : |
83
81
export PATH=~/${{ env.PG_INSTALL_DIR }}/bin:$PATH
84
- (cd ${{ env.TAG_DIR }} && ${{ matrix.platform.rustflags != '' && format('RUSTFLAGS="{0}"', matrix.platform.rustflags) || '' }} make package)
82
+ (cd ${{ env.TAG_DIR }} && make package)
85
83
bash scripts/package-deb.sh "${{ env.TAG }}" "${PWD}/${{ env.TAG_DIR }}" "$RUNNER_OS" "${{ matrix.pg.major }}"
86
84
87
85
# Use a GH artifact, then we can make use of the (quite limited) GH API https://docs.github.com/en/rest/actions/artifacts
Original file line number Diff line number Diff line change 26
26
platform :
27
27
- type : amd64
28
28
runs_on : ubuntu-22.04
29
- rustflags : ' -C target-feature=+avx2,+fma'
30
29
- type : arm64
31
30
runs_on : cloud-image-runner-arm64
32
- rustflags : ' '
33
31
34
32
env :
35
33
PG_SRC_DIR : pgbuild
@@ -70,12 +68,10 @@ jobs:
70
68
id : clippy
71
69
run : |
72
70
cd pgvectorscale
73
- ${{ matrix.platform.rustflags != '' && format('export RUSTFLAGS="{0}"', matrix.platform.rustflags) || '' }}
74
71
cargo clippy --all-targets --no-default-features --features 'pg_test pg${{ matrix.pg.major }}'
75
72
76
73
- name : Run tests
77
74
id : runtests
78
75
run : |
79
76
cd pgvectorscale
80
- ${{ matrix.platform.rustflags != '' && format('export RUSTFLAGS="{0}"', matrix.platform.rustflags) || '' }}
81
77
cargo pgrx test -- pg${{ matrix.pg.major }}
You can’t perform that action at this time.
0 commit comments