added rust compiler support
sgraves/cpp-build-system_mac/pipeline/head There was a failure building this commit

This commit is contained in:
sgraves committed 2026-10-23 21:19:34 -05:00
1 parent bc95d9d5f1
commit fee41e2262
5 files changed
+85 -1

No files matched your search

+26
View File
@@ -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
-48
View File
@@ -1,48 +0,0 @@
#comment
FROM debian:latest
ARG UID=0
ARG GID=0
RUN apt-get update
RUN apt-get install -y \
bash \
curl \
fonts-droid-fallback \
gdb \
git \
lib32stdc++6-x32-cross \
libglu1-mesa \
libstdc++6 \
python3 \
unzip \
wget
RUN apt-get clean
RUN git clone https://github.com/flutter/flutter.git /flutter
RUN git config --system --add safe.directory /flutter
ENV PATH="/flutter/bin:/flutter/bin/cache/dart-sdk/bin:${PATH}"
RUN flutter doctor -v
RUN flutter channel master
RUN flutter upgrade
RUN flutter --disable-analytics
RUN flutter config --no-analytics
RUN flutter config --enable-web
RUN flutter config --no-cli-animations
RUN mkdir /nonexistent
RUN chown -R $UID:$GID /nonexistent
RUN mkdir /.config
RUN chown -R $UID:$GID /.config
RUN mkdir /.dart-tool
RUN chown -R $UID:$GID /.dart-tool
RUN mkdir /.pub-cache
RUN chown -R $UID:$GID /.pub-cache
RUN chown -R $UID:$GID /flutter
+32
View File
@@ -11,6 +11,7 @@ RUN apk add \
binutils \
bison \
bzip2 \
ca-certificates \
clang21-extra-tools \
cmake \
curl \
@@ -1193,6 +1194,37 @@ RUN (cp ${MY_MINGW_DIR}/lib/*.dll ${MY_MINGW_DIR}/bin || echo "no dll's found")
&& rm -rf /3rd_party \
&& rm -rf /root/.wine
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-host x86_64-unknown-linux-musl \
--default-toolchain "${RUST_VERSION}" \
--target x86_64-pc-windows-gnu \
&& rm /tmp/rustup-init.sh
ENV CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER="${MY_MINGW_PREFIX}-gcc"
ENV CC_x86_64_pc_windows_gnu="${MY_MINGW_PREFIX}-gcc"
ENV CXX_x86_64_pc_windows_gnu="${MY_MINGW_PREFIX}-g++"
ENV AR_x86_64_pc_windows_gnu="${MY_MINGW_PREFIX}-ar"
RUN rustc --version \
&& cargo --version \
&& rustup target list --installed
ARG GID
ARG UID
RUN chown -R "${UID}:${GID}" /opt/rustup
RUN chown -R "${UID}:${GID}" /opt/cargo
USER $USERNAME
WORKDIR /home/$USERNAME