mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-04-24 17:12:16 +02:00
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
This commit is contained in:
parent
3ca324fda7
commit
59644d4592
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -107,9 +107,7 @@ jobs:
|
|||||||
- name: Use Cross
|
- name: Use Cross
|
||||||
if: matrix.target != ''
|
if: matrix.target != ''
|
||||||
run: |
|
run: |
|
||||||
# FIXME: to work around bugs in latest cross release, install master.
|
cargo install cross
|
||||||
# See: https://github.com/rust-embedded/cross/issues/357
|
|
||||||
cargo install --git https://github.com/rust-embedded/cross
|
|
||||||
echo "::set-env name=CARGO::cross"
|
echo "::set-env name=CARGO::cross"
|
||||||
echo "::set-env name=TARGET_FLAGS::--target ${{ matrix.target }}"
|
echo "::set-env name=TARGET_FLAGS::--target ${{ matrix.target }}"
|
||||||
echo "::set-env name=TARGET_DIR::./target/${{ matrix.target }}"
|
echo "::set-env name=TARGET_DIR::./target/${{ matrix.target }}"
|
||||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -131,9 +131,7 @@ jobs:
|
|||||||
- name: Use Cross
|
- name: Use Cross
|
||||||
# if: matrix.os != 'windows-2019'
|
# if: matrix.os != 'windows-2019'
|
||||||
run: |
|
run: |
|
||||||
# FIXME: to work around bugs in latest cross release, install master.
|
cargo install cross
|
||||||
# See: https://github.com/rust-embedded/cross/issues/357
|
|
||||||
cargo install --git https://github.com/rust-embedded/cross
|
|
||||||
echo "::set-env name=CARGO::cross"
|
echo "::set-env name=CARGO::cross"
|
||||||
echo "::set-env name=TARGET_FLAGS::--target ${{ matrix.target }}"
|
echo "::set-env name=TARGET_FLAGS::--target ${{ matrix.target }}"
|
||||||
echo "::set-env name=TARGET_DIR::./target/${{ matrix.target }}"
|
echo "::set-env name=TARGET_DIR::./target/${{ matrix.target }}"
|
||||||
|
@ -99,9 +99,7 @@ is_osx() {
|
|||||||
|
|
||||||
builder() {
|
builder() {
|
||||||
if is_musl && is_x86_64; then
|
if is_musl && is_x86_64; then
|
||||||
# cargo install cross
|
cargo install cross
|
||||||
# To work around https://github.com/rust-embedded/cross/issues/357
|
|
||||||
cargo install --git https://github.com/rust-embedded/cross --force
|
|
||||||
echo "cross"
|
echo "cross"
|
||||||
else
|
else
|
||||||
echo "cargo"
|
echo "cargo"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user