Skip to content

Commit 9ed2894

Browse files
committed
Merge branch 'toolchain'
2 parents 4afee48 + a926c75 commit 9ed2894

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ ENV PATH /opt/lcov-1.14/bin:$PATH
124124
# Install rust compiler
125125
ENV PATH /opt/cargo/bin:$PATH
126126
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
129129
RUN rustup target add thumbv7em-none-eabi
130130
RUN rustup component add rustfmt
131131
RUN rustup component add clippy

src/rust/rust-toolchain

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/rust/rust-toolchain.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[toolchain]
2+
channel = "1.78.0"

0 commit comments

Comments
 (0)