ci: don't install cross if it already exists
This commit is contained in:
parent
22f67e2b67
commit
490f79bca2
1 changed files with 5 additions and 2 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
|
@ -88,8 +88,11 @@ jobs:
|
|||
|
||||
- name: Install cross
|
||||
if: ${{ matrix.use-cross }}
|
||||
# TODO: Remove 'RUSTFLAGS=""' onc https://github.com/cross-rs/cross/issues/1561 is resolved
|
||||
run: RUSTFLAGS="" cargo install cross --git https://github.com/cross-rs/cross
|
||||
run: |
|
||||
if [ ! -x "$(command -v cross)" ]; then
|
||||
# TODO: Remove 'RUSTFLAGS=""' once https://github.com/cross-rs/cross/issues/1561 is resolved
|
||||
RUSTFLAGS="" cargo install cross --git https://github.com/cross-rs/cross
|
||||
fi
|
||||
|
||||
- name: Configure cross
|
||||
if: ${{ matrix.use-cross }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue