From 79003e94592911c15cace5f78c9922d21b3f9096 Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Tue, 11 Oct 2022 23:04:10 +0200
Subject: [PATCH] CI: Install the latest version of cargo and rustc in the
 docker

---
 .gitlab-ci.yml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 556b865d..609e1b49 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,7 +25,11 @@
 
 .common_build:
     before_script:
-        - apt update && apt -y install make libmpv-dev cmake clang clang-format gcc g++ libomp-dev libsdl2-dev libsdl2-image-dev xxd mkvtoolnix libcurl4-openssl-dev libsqlite3-dev manpages man-db cargo
+        - apt update && apt -y install make libmpv-dev cmake clang clang-format gcc g++ libomp-dev libsdl2-dev libsdl2-image-dev xxd mkvtoolnix libcurl4-openssl-dev libsqlite3-dev manpages man-db
+        - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
+        - chmod +x ./rustup.sh
+        - ./rustup.sh -y --default-toolchain beta
+        - source ~/.cargo/env
     script:
         - cmake -Bbuild -DCMAKE_C_COMPILER=${c_compiler} -DCMAKE_CXX_COMPILER=${cxx_compiler} && make -Cbuild
 
-- 
GitLab