2021-06-30 07:20:58 +01:00
|
|
|
FROM ubuntu:bionic
|
|
|
|
|
WORKDIR /opt
|
|
|
|
|
RUN apt update \
|
|
|
|
|
&& apt install -y gcc cmake ccache ninja-build git python3 curl g++ pkg-config libssl-dev
|
|
|
|
|
|
2021-07-28 15:14:45 +01:00
|
|
|
RUN git clone https://github.com/esp-rs/rust.git \
|
2021-06-30 07:20:58 +01:00
|
|
|
&& cd rust \
|
2021-07-28 15:14:45 +01:00
|
|
|
&& ./configure --experimental-targets=Xtensa --enable-extended --tools=rustfmt \
|
2021-06-30 07:20:58 +01:00
|
|
|
&& python3 x.py dist --stage 2 || echo "Build failed - silencing error to persist current build artifacts"
|
|
|
|
|
|