From 59644d45928fff5ae2ef509a2ed6a5b63a7baf8c Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Mon, 9 Nov 2020 21:25:41 +0900 Subject: [PATCH] ci: install cross from crates.io A new release of cross has been put out, so we no longer need to install it from git. PR #1728 --- .github/workflows/ci.yml | 4 +--- .github/workflows/release.yml | 4 +--- ci/utils.sh | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eee64bd70..e0f164a14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,9 +107,7 @@ jobs: - name: Use Cross if: matrix.target != '' run: | - # FIXME: to work around bugs in latest cross release, install master. - # See: https://github.com/rust-embedded/cross/issues/357 - cargo install --git https://github.com/rust-embedded/cross + cargo install cross echo "::set-env name=CARGO::cross" echo "::set-env name=TARGET_FLAGS::--target ${{ matrix.target }}" echo "::set-env name=TARGET_DIR::./target/${{ matrix.target }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d687d824d..1afec1769 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -131,9 +131,7 @@ jobs: - name: Use Cross # if: matrix.os != 'windows-2019' run: | - # FIXME: to work around bugs in latest cross release, install master. - # See: https://github.com/rust-embedded/cross/issues/357 - cargo install --git https://github.com/rust-embedded/cross + cargo install cross echo "::set-env name=CARGO::cross" echo "::set-env name=TARGET_FLAGS::--target ${{ matrix.target }}" echo "::set-env name=TARGET_DIR::./target/${{ matrix.target }}" diff --git a/ci/utils.sh b/ci/utils.sh index f9c59339b..f3dc96d28 100644 --- a/ci/utils.sh +++ b/ci/utils.sh @@ -99,9 +99,7 @@ is_osx() { builder() { if is_musl && is_x86_64; then - # cargo install cross - # To work around https://github.com/rust-embedded/cross/issues/357 - cargo install --git https://github.com/rust-embedded/cross --force + cargo install cross echo "cross" else echo "cargo"