mirror of
https://github.com/tensorchord/pgvecto.rs.git
synced 2025-04-18 21:44:00 +03:00
fix: aarch64 release CI (#606)
Signed-off-by: usamoi <usamoi@outlook.com>
This commit is contained in:
parent
f7c766d68e
commit
c6da93927b
7
.github/workflows/psql.yml
vendored
7
.github/workflows/psql.yml
vendored
@ -77,13 +77,6 @@ jobs:
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
key: ${{ github.job }}-${{ hashFiles('./Cargo.lock') }}-${{ matrix.version }}
|
||||
- name: Set up Clang-16
|
||||
run: |
|
||||
sudo sh -c 'echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-16 main" >> /etc/apt/sources.list'
|
||||
wget --quiet -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y clang-16
|
||||
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 128
|
||||
- name: Build
|
||||
run: |
|
||||
export PGRX_PG_CONFIG_PATH=$(pwd)/vendor/pg${VERSION}_${ARCH}_debian/pg_config/pg_config
|
||||
|
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@ -59,7 +59,11 @@ jobs:
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y build-essential crossbuild-essential-arm64
|
||||
sudo apt-get install -y qemu-user-static
|
||||
echo 'target.aarch64-unknown-linux-gnu.linker = "aarch64-linux-gnu-gcc"' | tee ~/.cargo/config.toml
|
||||
touch ~/.cargo/config.toml
|
||||
echo 'target.aarch64-unknown-linux-gnu.linker = "aarch64-linux-gnu-gcc"' >> ~/.cargo/config.toml
|
||||
echo 'target.aarch64-unknown-linux-gnu.runner = ["qemu-aarch64-static", "-L", "/usr/aarch64-linux-gnu"]' >> ~/.cargo/config.toml
|
||||
rustup target add x86_64-unknown-linux-gnu
|
||||
rustup target add aarch64-unknown-linux-gnu
|
||||
- name: Set up Sccache
|
||||
uses: mozilla-actions/sccache-action@v0.0.4
|
||||
- name: Set up Cache
|
||||
@ -71,13 +75,6 @@ jobs:
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
key: ${{ github.job }}-${{ hashFiles('./Cargo.lock') }}-${{ matrix.version }}-${{ matrix.arch }}
|
||||
- name: Set up Clang-16
|
||||
run: |
|
||||
sudo sh -c 'echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-16 main" >> /etc/apt/sources.list'
|
||||
wget --quiet -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y clang-16
|
||||
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 128
|
||||
- name: Build
|
||||
run: |
|
||||
export PGRX_PG_CONFIG_PATH=$(pwd)/vendor/pg${VERSION}_${ARCH}_debian/pg_config/pg_config
|
||||
|
7
.github/workflows/release_enterprise.yml
vendored
7
.github/workflows/release_enterprise.yml
vendored
@ -73,13 +73,6 @@ jobs:
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
key: ${{ github.job }}-${{ hashFiles('./Cargo.lock') }}-${{ matrix.version }}-${{ matrix.arch }}
|
||||
- name: Set up Clang-16
|
||||
run: |
|
||||
sudo sh -c 'echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-16 main" >> /etc/apt/sources.list'
|
||||
wget --quiet -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y clang-16
|
||||
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 128
|
||||
- name: Schema
|
||||
run: |
|
||||
echo -n $PGVECTORS_SCHEMA > .schema
|
||||
|
7
.github/workflows/rust.yml
vendored
7
.github/workflows/rust.yml
vendored
@ -78,13 +78,6 @@ jobs:
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
key: ${{ github.job }}-${{ hashFiles('./Cargo.lock') }}-${{ matrix.arch }}
|
||||
- name: Set up Clang-16
|
||||
run: |
|
||||
sudo sh -c 'echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-16 main" >> /etc/apt/sources.list'
|
||||
wget --quiet -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y clang-16
|
||||
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 128
|
||||
- name: Clippy
|
||||
run: |
|
||||
cargo clippy --workspace --exclude pgvectors --exclude pyvectors --target $ARCH-unknown-linux-gnu
|
||||
|
@ -96,7 +96,7 @@ mod mul_add_round {
|
||||
// this hint is used to disable loop unrolling
|
||||
while std::hint::black_box(n) > 0 {
|
||||
let x = a.read();
|
||||
let v = (k * x + b).round_ties_even() as u8;
|
||||
let v = x.mul_add(k, b).round_ties_even() as u8;
|
||||
r.write(v);
|
||||
n -= 1;
|
||||
a = a.add(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user