From ef3938ece6558ab6db380af006bb1c5d873c521a Mon Sep 17 00:00:00 2001 From: Vladimir Istyufeev Date: Wed, 23 Nov 2022 19:18:11 +0000 Subject: [PATCH] Use `clang-14` for `paritytech/base-ci-linux` --- dockerfiles/base-ci-linux/Dockerfile | 14 +++++++------- dockerfiles/base-ci-linux/README.md | 6 +++--- dockerfiles/utility/base-ci-linux-config | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/dockerfiles/base-ci-linux/Dockerfile b/dockerfiles/base-ci-linux/Dockerfile index 93fed58e..383e5e34 100644 --- a/dockerfiles/base-ci-linux/Dockerfile +++ b/dockerfiles/base-ci-linux/Dockerfile @@ -31,8 +31,8 @@ COPY utility/base-ci-linux-config /root/.cargo/config ENV RUSTUP_HOME=/usr/local/rustup \ CARGO_HOME=/usr/local/cargo \ PATH=/usr/local/cargo/bin:$PATH \ - CC=clang-13 \ - CXX=clang-13 + CC=clang-14 \ + CXX=clang-14 # install tools and dependencies RUN set -eux; \ @@ -41,13 +41,13 @@ RUN set -eux; \ libssl-dev make cmake graphviz \ git pkg-config curl time rhash ca-certificates \ python3 python3-pip lsof ruby ruby-bundler git-restore-mtime xz-utils unzip gnupg protobuf-compiler && \ -# add clang 13 repo +# add clang 14 repo curl -s https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -; \ - echo "deb http://apt.llvm.org/buster/ llvm-toolchain-buster-13 main" >> /etc/apt/sources.list.d/llvm-toochain-buster-13.list; \ - echo "deb-src http://apt.llvm.org/buster/ llvm-toolchain-buster-13 main" >> /etc/apt/sources.list.d/llvm-toochain-buster-13.list; \ + echo "deb http://apt.llvm.org/buster/ llvm-toolchain-buster-14 main" >> /etc/apt/sources.list.d/llvm-toochain-buster-14.list; \ + echo "deb-src http://apt.llvm.org/buster/ llvm-toolchain-buster-14 main" >> /etc/apt/sources.list.d/llvm-toochain-buster-14.list; \ apt-get -y update; \ apt-get install -y --no-install-recommends \ - clang-13 lldb-13 lld-13 libclang-13-dev && \ + clang-14 lldb-14 lld-14 libclang-14-dev && \ # add non-root user groupadd -g 1000 nonroot && \ useradd -u 1000 -g 1000 -s /bin/bash -m nonroot && \ @@ -61,7 +61,7 @@ RUN set -eux; \ curl -L "https://dl.min.io/client/mc/release/linux-amd64/mc" -o /usr/local/bin/mc && \ chmod 755 /usr/local/bin/mc && \ # set a link to clang - update-alternatives --install /usr/bin/cc cc /usr/bin/clang-13 100; \ + update-alternatives --install /usr/bin/cc cc /usr/bin/clang-14 100; \ # install rustup, use minimum components curl -L "https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init" \ -o rustup-init; \ diff --git a/dockerfiles/base-ci-linux/README.md b/dockerfiles/base-ci-linux/README.md index e23284d3..0c6e656f 100644 --- a/dockerfiles/base-ci-linux/README.md +++ b/dockerfiles/base-ci-linux/README.md @@ -11,9 +11,9 @@ Used to build and test Substrate-based projects. **Dependencies and Tools:** - `libssl-dev` -- `clang-13` -- `lld-13` -- `libclang-13-dev` +- `clang-14` +- `lld-14` +- `libclang-14-dev` - `make` - `cmake` - `git` diff --git a/dockerfiles/utility/base-ci-linux-config b/dockerfiles/utility/base-ci-linux-config index 50043657..5b4bf1af 100644 --- a/dockerfiles/utility/base-ci-linux-config +++ b/dockerfiles/utility/base-ci-linux-config @@ -1,9 +1,9 @@ [target.wasm32-unknown-unknown] runner = "node" -linker="clang-13" +linker="clang-14" [target.x86_64-unknown-linux-gnu] # Enables the aes-ni instructions for RustCrypto dependency. rustflags = ["-Ctarget-feature=+aes,+sse2,+ssse3"] # setup clang as Linker -linker="clang-13" +linker="clang-14"