diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 336b86c8db52..6bd929c5174c 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -19,7 +19,7 @@ jobs: name: Install Python with: python-version: '3.10' - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@1.73 - name: Build wheels uses: pypa/cibuildwheel@v2.13.0 - uses: actions/upload-artifact@v3 @@ -40,7 +40,7 @@ jobs: name: Install Python with: python-version: '3.10' - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@1.73 - name: Build wheels uses: pypa/cibuildwheel@v2.13.0 env: @@ -85,7 +85,7 @@ jobs: name: Install Python with: python-version: '3.10' - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@1.73 - name: Set up QEMU uses: docker/setup-qemu-action@v1 with: @@ -118,7 +118,7 @@ jobs: name: Install Python with: python-version: '3.10' - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@1.73 - name: Set up QEMU uses: docker/setup-qemu-action@v1 with: @@ -151,7 +151,7 @@ jobs: name: Install Python with: python-version: '3.10' - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@1.73 - name: Set up QEMU uses: docker/setup-qemu-action@v1 with: diff --git a/pyproject.toml b/pyproject.toml index 25ff0a5dade7..d518b49649df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,11 +17,11 @@ test-command = "python {project}/examples/python/stochastic_swap.py" # Numpy 1.22 there are no i686 wheels, so we force pip to use older ones without # restricting any dependencies that Numpy and Scipy might have. before-test = "pip install --only-binary=numpy,scipy numpy scipy" -environment = 'RUSTUP_TOOLCHAIN="stable"' +environment = 'RUSTUP_TOOLCHAIN="1.73"' [tool.cibuildwheel.linux] before-all = "yum install -y wget && {package}/tools/install_rust.sh" -environment = 'PATH="$PATH:$HOME/.cargo/bin" CARGO_NET_GIT_FETCH_WITH_CLI="true" RUSTUP_TOOLCHAIN="stable"' +environment = 'PATH="$PATH:$HOME/.cargo/bin" CARGO_NET_GIT_FETCH_WITH_CLI="true" RUSTUP_TOOLCHAIN="1.73"' repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel} && pipx run abi3audit --strict --report {wheel}" [tool.cibuildwheel.macos] diff --git a/tools/install_rust.sh b/tools/install_rust.sh index d86416207240..8b943a287986 100755 --- a/tools/install_rust.sh +++ b/tools/install_rust.sh @@ -2,5 +2,5 @@ if [ ! -d rust-installer ]; then mkdir rust-installer wget https://sh.rustup.rs -O rust-installer/rustup.sh - sh rust-installer/rustup.sh -y + sh rust-installer/rustup.sh -y --default-toolchain 1.73 fi