File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,8 @@ ENV PATH /opt/lcov-1.14/bin:$PATH
124
124
# Install rust compiler
125
125
ENV PATH /opt/cargo/bin:$PATH
126
126
ENV RUSTUP_HOME=/opt/rustup
127
- COPY src/rust/rust-toolchain /tmp/rust-toolchain
128
- RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/opt/cargo sh -s -- --default-toolchain $(cat /tmp/rust-toolchain | tr -d ' \r\n\t ' ) -y
127
+ COPY src/rust/rust-toolchain.toml /tmp/rust-toolchain.toml
128
+ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/opt/cargo sh -s -- --default-toolchain $(grep -oP '(?<=channel = ")[^"]+' /tmp/rust-toolchain.toml ) -y
129
129
RUN rustup target add thumbv7em-none-eabi
130
130
RUN rustup component add rustfmt
131
131
RUN rustup component add clippy
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ [toolchain ]
2
+ channel = " 1.78.0"
You can’t perform that action at this time.
0 commit comments