image: pre-install rust
@@ -11,3 +11,11 @@ WORKDIR /tmp/gtk-4.6.0
RUN meson _build --prefix=/usr
RUN ninja -C _build
RUN ninja -C _build install
+
+RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
+RUN rustup install stable --allow-downgrade -c clippy -c rustfmt
+RUN rustup install beta --allow-downgrade -c clippy -c rustfmt
+RUN rustup install nightly --allow-downgrade -c clippy -c rustfmt
+RUN rustup install 1.56.0 --allow-downgrade -c clippy -c rustfmt
+
+RUN rustup default stable
