Skip to content

Commit 8e8b2fc

Browse files
committed
ci: attempt to fix cross in CI
This is a perfect example of why adding support for more targets is costly. Every so often, the cross compiling toolchain breaks for mysterious reasons.
1 parent 9aef5b1 commit 8e8b2fc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,11 @@ jobs:
7575
- name: Install and configure Cross
7676
if: matrix.target != ''
7777
run: |
78-
# FIXME: to work around bugs in latest cross release, install master.
79-
# See: https://github.com/rust-embedded/cross/issues/357
80-
cargo install --git https://github.com/rust-embedded/cross
78+
# We used to install 'cross' from master, but it kept failing. So now
79+
# we build from a known-good version until 'cross' becomes more stable
80+
# or we find an alternative. Notably, between v0.2.1 and current
81+
# master (2022-06-14), the number of Cross's dependencies has doubled.
82+
cargo install --bins --git https://github.com/rust-embedded/cross --tag v0.2.1
8183
echo "CARGO=cross" >> $GITHUB_ENV
8284
echo "TARGET=--target ${{ matrix.target }}" >> $GITHUB_ENV
8385

0 commit comments

Comments
 (0)