From fa463074121a46fea55cd74d831c5c3565af620c Mon Sep 17 00:00:00 2001 From: "C. Titus Brown" Date: Thu, 1 Dec 2022 22:02:44 -0800 Subject: [PATCH] [MRG] fixing cross-platform cibuildwheel action for release (#2384) --- .ci/install_cargo.sh | 6 +++++- .github/workflows/build_wheel_all_archs.yml | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.ci/install_cargo.sh b/.ci/install_cargo.sh index 94ec2b9beb..a29d5c82cb 100755 --- a/.ci/install_cargo.sh +++ b/.ci/install_cargo.sh @@ -1,5 +1,9 @@ #! /bin/sh -curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable +curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=stable +rustup show export PATH="$HOME/.cargo/bin:$PATH" rustc -V rustup target add aarch64-apple-darwin + +export CARGO_NET_GIT_FETCH_WITH_CLI=true +cargo update diff --git a/.github/workflows/build_wheel_all_archs.yml b/.github/workflows/build_wheel_all_archs.yml index 4ee93748b1..98a2ecf279 100644 --- a/.github/workflows/build_wheel_all_archs.yml +++ b/.github/workflows/build_wheel_all_archs.yml @@ -1,6 +1,7 @@ -name: cibuildwheel +name: cibuildwheel_ubuntu on: + pull_request: # CTB remove before merge! push: branches: [latest] tags: v* @@ -70,6 +71,7 @@ jobs: CIBW_ENVIRONMENT_MACOS: ${{ matrix.macos_target }} CIBW_ARCHS_LINUX: ${{ matrix.arch }} CIBW_ARCHS_MACOS: ${{ matrix.arch }} + CARGO_NET_GIT_FETCH_WITH_CLI: true - uses: actions/upload-artifact@v3 with: