added rust compiler support
sgraves/cpp-build-system_mac/pipeline/head There was a failure building this commit
sgraves/cpp-build-system_mac/pipeline/head There was a failure building this commit
This commit is contained in:
1 parent
bc95d9d5f1
commit
fee41e2262
5 files changed
+85
-1
No files matched your search
@@ -16,6 +16,7 @@ RUN apk add \
|
||||
boost-dev \
|
||||
bzip2-static \
|
||||
cmake \
|
||||
curl \
|
||||
diffutils \
|
||||
elfutils-dev \
|
||||
file \
|
||||
@@ -83,3 +84,28 @@ RUN apk add \
|
||||
|
||||
RUN ln -sf /usr/bin/aclocal-1.18 /usr/bin/aclocal-1.16
|
||||
RUN ln -sf /usr/bin/automake-1.18 /usr/bin/automake-1.16
|
||||
|
||||
ARG RUST_VERSION=stable
|
||||
|
||||
ENV RUSTUP_HOME=/opt/rustup
|
||||
ENV CARGO_HOME=/opt/cargo
|
||||
ENV PATH="/opt/cargo/bin:${PATH}"
|
||||
|
||||
RUN curl --proto '=https' --tlsv1.2 -fsSL \
|
||||
https://sh.rustup.rs -o /tmp/rustup-init.sh \
|
||||
&& sh /tmp/rustup-init.sh \
|
||||
-y \
|
||||
--no-modify-path \
|
||||
--profile minimal \
|
||||
--default-toolchain "${RUST_VERSION}" \
|
||||
&& rm /tmp/rustup-init.sh
|
||||
|
||||
ARG GID
|
||||
ARG UID
|
||||
RUN chown -R "${UID}:${GID}" /opt/rustup
|
||||
RUN chown -R "${UID}:${GID}" /opt/cargo
|
||||
|
||||
RUN rustc --version \
|
||||
&& cargo --version \
|
||||
&& rustup target list --installed
|
||||
|
||||
Reference in new issue
Block a user