fix(neuron): explicitly install toolchain (#3072)

* fix(neuron): explicitly install toolchain

* ci(neuron): trigger CI when Dockerfile is modified
This commit is contained in:
David Corvoysier 2025-03-05 11:46:58 +01:00 committed by GitHub
parent 491ed9e11d
commit cb42b3ad83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -20,6 +20,7 @@ on:
- "Dockerfile" - "Dockerfile"
- "Dockerfile_amd" - "Dockerfile_amd"
- "Dockerfile_intel" - "Dockerfile_intel"
- "Dockerfile.neuron"
branches: branches:
- "main" - "main"
workflow_dispatch: workflow_dispatch:

View File

@ -18,8 +18,7 @@ RUN apt-get update -y \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& apt-get clean && apt-get clean
COPY rust-toolchain.toml rust-toolchain.toml RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.85.0 --profile minimal -y
RUN curl -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain none
ENV PATH="/root/.cargo/bin:${PATH}" ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo install cargo-chef --locked RUN cargo install cargo-chef --locked