Skip to content

Commit ef8255b

Browse files
committed
CI: use rustup instead of system Rust packages
blazesym's dependency indexmap v2.12.0 requires Rust 1.82+, but Ubuntu 22.04's apt packages only provide Rust 1.75.0. Switch to installing Rust via rustup to get a recent stable version. Signed-off-by: Andrii Nakryiko <[email protected]>
1 parent 986b289 commit ef8255b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/docker/Dockerfile.ubuntu

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ RUN apt-get update && apt-get install -y \
3838
llvm-${LLVM_VERSION}-runtime \
3939
libllvm${LLVM_VERSION} \
4040
make cmake pkg-config \
41-
rustc cargo rustfmt \
4241
sudo \
4342
&& apt-get -y clean
4443

44+
# Install Rust via rustup to get a recent version (required for blazesym dependencies)
45+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --component rustfmt
46+
ENV PATH="/root/.cargo/bin:${PATH}"
47+
4548
RUN ln -s /usr/bin/clang-${LLVM_VERSION} /usr/bin/clang && ln -s /usr/bin/llvm-strip-${LLVM_VERSION} /usr/bin/llvm-strip

0 commit comments

Comments
 (0)