2121
2222jobs :
2323 packager :
24- runs-on : ubuntu-latest
24+ runs-on : ${{ matrix.runs_on }}
25+
26+ strategy :
27+ fail-fast : false
28+ matrix :
29+ platform : [ amd64, arm64 ]
30+ include :
31+ - platform : amd64
32+ runs_on : ubuntu-latest
33+ rustflags : ' -C target-feature=+avx2,+fma'
34+ - platform : arm64
35+ runs_on : cloud-image-runner-arm64
36+ rustflags : ' '
37+
2538 env :
2639 PG_VER : ${{ github.event.inputs.PG }}
2740 PG_MIN_VER : ${{ github.event.inputs.PG_MIN }}
4255
4356 - name : Install Deb builder specific packages
4457 run : |
45- sudo apt-get install dpkg-dev debhelper
58+ sudo apt-get install dpkg-dev debhelper build-essential
4659
4760 - name : Install PostgreSQL ${{ env.PG_VER }}
4861 uses : ./.github/actions/install-postgres
@@ -68,13 +81,13 @@ jobs:
6881 id : debbuild
6982 run : |
7083 export PATH=~/${{ env.PG_INSTALL_DIR }}/bin:$PATH
71- (cd ${{ env.TAG_DIR }} && make package)
84+ (cd ${{ env.TAG_DIR }} && ${{ matrix.rustflags != '' && format('RUSTFLAGS="{0}"', matrix.rustflags) || '' }} make package)
7285 bash scripts/package-deb.sh "${{ env.TAG }}" "${PWD}/${{ env.TAG_DIR }}" "$RUNNER_OS" "${{ env.PG_VER }}"
7386
7487 # Use a GH artifact, then we can make use of the (quite limited) GH API https://docs.github.com/en/rest/actions/artifacts
7588 # The artifact will have a TTL of 90 days
7689 - name : Upload deb as Artifact
7790 uses : actions/upload-artifact@v4
7891 with :
79- name : pgvectorscale-${{ env.TAG }}-pg${{ env.PG_VER }}
92+ name : pgvectorscale-${{ env.TAG }}-pg${{ env.PG_VER }}-${{ matrix.platform }}
8093 path : pkgdump/pgvectorscale-*${{ env.TAG }}*.deb
0 commit comments