Skip to content

Commit

Permalink
ci: Pin rustc to version 1.78 due to a type inference regression
Browse files Browse the repository at this point in the history
Changelog-None
  • Loading branch information
cdecker committed Jul 26, 2024
1 parent 15fb37f commit 76ad48c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/scripts/setup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/bash
set -e
export DEBIAN_FRONTEND=noninteractive
export RUST_VERSION=stable

# Fix the RUST_VERSION as 1.80 appears to have a regression (the
# `time` crate about a missing type annotation.)
export RUST_VERSION=1.78

sudo useradd -ms /bin/bash tester
sudo apt-get update -qq
Expand Down Expand Up @@ -56,6 +59,9 @@ sudo chmod 0440 /etc/sudoers.d/tester
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
-y --default-toolchain ${RUST_VERSION}

echo "rustc version = $(rustc --version)"
echo "cargo version = $(cargo --version)"

# We also need a relatively recent protobuf-compiler, at least 3.12.0,
# in order to support the experimental `optional` flag.

Expand Down

0 comments on commit 76ad48c

Please sign in to comment.