From 98ffde8ab1c9afc8ad665ac382e69b16dd233c22 Mon Sep 17 00:00:00 2001 From: Richard Kiss Date: Sat, 6 Jan 2024 19:06:33 -0800 Subject: [PATCH] rust --- .github/workflows/build_wheels.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index a8f7732..ddf763d 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -13,12 +13,15 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + if: ${{ !startsWith(matrix.os, 'ubuntu') }} + - name: Build wheels uses: pypa/cibuildwheel@v2.16.2 env: CIBW_TEST_REQUIRES: pytest CIBW_TEST_COMMAND: "pytest {project}/tests" - CIBW_BEFORE_ALL: "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh" + CIBW_BEFORE_BUILD_LINUX: "curl -o rustup.sh --proto '=https' --tlsv1.2 https://sh.rustup.rs && sh ./rustup.sh -y" - uses: actions/upload-artifact@v4 with: