Skip to content

Commit

Permalink
setup rust
Browse files Browse the repository at this point in the history
  • Loading branch information
jstzwj committed Jan 4, 2025
1 parent bc68b45 commit d6fa082
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/linux_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .. &&
Expand Down
4 changes: 4 additions & 0 deletions setup_rust.sh
Original file line number Diff line number Diff line change
@@ -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}"

0 comments on commit d6fa082

Please sign in to comment.