fix: use correct env var (#1166)

* fix: use correct env var

* fix: move COPY up so rustup know it's nightly

* fix: add `pyo3_backend` in GHA yml

* chore: name for `TODO`

* temp: not set `pyo3_backend` before find DSO

* fix: release linux with pyo3_backend
This commit is contained in:
discord9
2023-03-14 10:57:13 +08:00
committed by GitHub
parent 296c6dfcbf
commit a60788e92e
3 changed files with 22 additions and 10 deletions

View File

@@ -103,7 +103,7 @@ jobs:
run: |
sudo chmod +x ./docker/aarch64/compile-python.sh
sudo ./docker/aarch64/compile-python.sh
export PYO3_CROSS_LIB_DIR=${PWD}/python310-aarch64/lib
export PYO3_CROSS_LIB_DIR=$(pwd)/python_arm64_build/lib
echo $PYO3_CROSS_LIB_DIR
- name: Install rust toolchain
@@ -118,7 +118,12 @@ jobs:
- name: Run tests
run: make unit-test integration-test sqlness-test
- name: Run cargo build
- name: Run cargo build with pyo3-backend
if: contains(matrix.arch, 'linux') && endsWith(matrix.arch, '-gnu')
run: cargo build ${{ matrix.opts }} --profile ${{ env.CARGO_PROFILE }} --locked --target ${{ matrix.arch }} -F pyo3_backend
- name: Run cargo build with macos
if: contains(matrix.arch, 'darwin')
run: cargo build ${{ matrix.opts }} --profile ${{ env.CARGO_PROFILE }} --locked --target ${{ matrix.arch }}
- name: Calculate checksum and rename binary