File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -118,19 +118,18 @@ ENV RUSTUP_HOME="$HOME/.rustup"
118118ENV PATH="$CARGO_HOME/bin:$PATH"
119119
120120# Install Rust/Cargo and extras (rust-src, rust fmt, cargo-make, cargo-tarpaulin)
121- RUN VERSION_URL="https://raw.githubusercontent.com/microsoft/mu_devops/main/.sync/Version.njk" && \
122- RUST_VERSION=$(curl -s ${VERSION_URL} | grep -oP '(?<=rust_toolchain = ").*(?=")' ) && \
121+ RUN RUST_VERSION=1.85.0 && \
123122 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain ${RUST_VERSION} --profile minimal && \
124123 rustup component add rustfmt rust-src --toolchain ${RUST_VERSION}-x86_64-unknown-linux-gnu
125124
126125RUN mkdir cargo_downloads && \
127126 cd cargo_downloads && \
128- TAG_NAME=$(curl -s https://api.github.com/repos/sagiegurari/cargo-make/releases/latest | jq -r '.tag_name' ) && \
127+ TAG_NAME=0.37.24 && \
129128 DOWNLOAD_URL="https://github.com/sagiegurari/cargo-make/releases/download/$TAG_NAME/cargo-make-v$TAG_NAME-x86_64-unknown-linux-gnu.zip" && \
130129 curl -L -o cargo-make.zip "$DOWNLOAD_URL" && \
131130 unzip cargo-make.zip && \
132131 mv cargo-make-v$TAG_NAME-x86_64-unknown-linux-gnu/cargo-make $CARGO_HOME/bin/ && \
133- TAG_NAME=$(curl -s https://api.github.com/repos/xd009642/tarpaulin/releases/latest | jq -r '.tag_name' ) && \
132+ TAG_NAME=0.31.5 && \
134133 DOWNLOAD_URL="https://github.com/xd009642/tarpaulin/releases/download/$TAG_NAME/cargo-tarpaulin-x86_64-unknown-linux-gnu.tar.gz" && \
135134 curl -L -o cargo-tarpaulin.tar.gz "$DOWNLOAD_URL" && \
136135 tar -xzvf cargo-tarpaulin.tar.gz && \
Original file line number Diff line number Diff line change @@ -115,19 +115,18 @@ ENV RUSTUP_HOME="$HOME/.rustup"
115115ENV PATH="$CARGO_HOME/bin:$PATH"
116116
117117# Install Rust/Cargo and extras (rust-src, rust fmt, cargo-make, cargo-tarpaulin)
118- RUN VERSION_URL="https://raw.githubusercontent.com/microsoft/mu_devops/main/.sync/Version.njk" && \
119- RUST_VERSION=$(curl -s ${VERSION_URL} | grep -oP '(?<=rust_toolchain = ").*(?=")' ) && \
118+ RUN RUST_VERSION=1.85.0 && \
120119 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain ${RUST_VERSION} --profile minimal && \
121120 rustup component add rustfmt rust-src --toolchain ${RUST_VERSION}-x86_64-unknown-linux-gnu
122121
123122RUN mkdir cargo_downloads && \
124123 cd cargo_downloads && \
125- TAG_NAME=$(curl -s https://api.github.com/repos/sagiegurari/cargo-make/releases/latest | jq -r '.tag_name' ) && \
124+ TAG_NAME=0.37.24 && \
126125 DOWNLOAD_URL="https://github.com/sagiegurari/cargo-make/releases/download/$TAG_NAME/cargo-make-v$TAG_NAME-x86_64-unknown-linux-gnu.zip" && \
127126 curl -L -o cargo-make.zip "$DOWNLOAD_URL" && \
128127 unzip cargo-make.zip && \
129128 mv cargo-make-v$TAG_NAME-x86_64-unknown-linux-gnu/cargo-make $CARGO_HOME/bin/ && \
130- TAG_NAME=$(curl -s https://api.github.com/repos/xd009642/tarpaulin/releases/latest | jq -r '.tag_name' ) && \
129+ TAG_NAME=0.31.5 && \
131130 DOWNLOAD_URL="https://github.com/xd009642/tarpaulin/releases/download/$TAG_NAME/cargo-tarpaulin-x86_64-unknown-linux-gnu.tar.gz" && \
132131 curl -L -o cargo-tarpaulin.tar.gz "$DOWNLOAD_URL" && \
133132 tar -xzvf cargo-tarpaulin.tar.gz && \
You can’t perform that action at this time.
0 commit comments