diff --git a/.github/workflows/linux_wheel.yml b/.github/workflows/linux_wheel.yml index 28cbee8..6383cc9 100644 --- a/.github/workflows/linux_wheel.yml +++ b/.github/workflows/linux_wheel.yml @@ -75,7 +75,7 @@ jobs: runs-on: ${{ matrix.os }} env: CIBW_BEFORE_BUILD: pip install setuptools==58.0.1&&pip install Cython==0.29.37&&pip install -U wheel numpy - CIBW_BEFORE_TEST: apk add rustup&&rustup update&&pip install Cython==0.29.37&&pip install -U maturin + CIBW_BEFORE_TEST: apk add bash&&bash setup_rust.sh&&pip install Cython==0.29.37&&pip install -U maturin CIBW_TEST_REQUIRES: pytest pandas polars CIBW_TEST_COMMAND: > cd .. && diff --git a/setup_rust.sh b/setup_rust.sh new file mode 100644 index 0000000..08311a7 --- /dev/null +++ b/setup_rust.sh @@ -0,0 +1,4 @@ +#!/bin/bash +curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y +echo 'source $HOME/.cargo/env' >> $HOME/.bashrc +export PATH="/root/.cargo/bin:${PATH}" \ No newline at end of file