.gitlab-ci.yml: Install Rust and cargo
[soc.git] / .gitlab-ci.yml
index 5708880eba427fc9c14fe22f572fffc1221185ba..039871955f8cbe390d122c60af40865c0377b016 100644 (file)
@@ -21,13 +21,15 @@ build:
             python3-setuptools python3-wheel pkg-config tcl-dev
             libreadline-dev bison flex libffi-dev ccache python3-venv
             binutils-powerpc64-linux-gnu binutils-powerpc64le-linux-gnu
-            autoconf gperf libgmp-dev libmpfr-dev libssl-dev
+            autoconf gperf libgmp-dev libmpfr-dev libssl-dev curl
         - export PATH="/usr/lib/ccache:$PATH"
         - export CCACHE_BASEDIR="$PWD"
         - export CCACHE_DIR="$PWD/ccache"
         - export CCACHE_COMPILERCHECK=content
         - ccache --zero-stats || true
         - ccache --show-stats || true
+        - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
+        - source $HOME/.cargo/env
     after_script:
         - export CCACHE_DIR="$PWD/ccache"
         - ccache --show-stats