From e9cceca33a2e42dbe5c8a773c8f69459a0203085 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonathan=20Neusch=C3=A4fer?= Date: Mon, 3 May 2021 22:33:12 +0200 Subject: [PATCH] .gitlab-ci.yml: Install Rust and cargo Unfortunately, Rust 1.41 (as available in Debian 10) is too old for object v0.23.0, a dependency of maturin: error[E0658]: subslice patterns are unstable --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:162:41 | 162 | [0x7f, b'E', b'L', b'F', 1, ..] => FileKind::Elf32, | ^^ | = note: for more information, see https://github.com/rust-lang/rust/issues/62254 ... so we have to resort to rustup. --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5708880e..03987195 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 -- 2.30.2