Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] Temporarily switch to clang-14 #8419

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
env:
TI_CI: "1"
TI_SKIP_VERSION_CHECK: "ON"
CI_IMAGE_VERSION: '202305261112'
CI_IMAGE_VERSION: '202311231829'

jobs:
gpu_backends:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:
METADATA_URL: ${{ secrets.METADATA_URL }}
RELEASE_VERSION: ${{ github.event.inputs.version }}
NIGHTLY: ${{ !github.event.inputs.version && '--nightly' || '' }}
CI_IMAGE_VERSION: '202305261112'
CI_IMAGE_VERSION: '202311231829'
TI_CI: "1"
TI_SKIP_VERSION_CHECK: 'ON'
TI_USE_GIT_CACHE: ${{ vars.TI_USE_GIT_CACHE }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
TI_SKIP_VERSION_CHECK: 'ON'
TI_LITE_TEST: ${{ github.event_name == 'pull_request' && ! contains(github.event.pull_request.labels.*.name, 'full-ci') && ! startsWith(github.base_ref, 'rc-') && '1' || '' }}
TI_TEST_OFFLINE_CACHE: ${{ github.event.schedule == '0 18 * * *' && '1' || '' }}
CI_IMAGE_VERSION: '202305261112'
CI_IMAGE_VERSION: '202311231829'
TI_USE_GIT_CACHE: ${{ vars.TI_USE_GIT_CACHE }}

jobs:
Expand Down
17 changes: 6 additions & 11 deletions ci/Dockerfile.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ RUN set -x && \
add-apt-repository -y ppa:git-core/ppa && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 15CF4D18AF4F7421 && \
. /etc/lsb-release && \
echo "deb http://apt.llvm.org/$DISTRIB_CODENAME/ llvm-toolchain-$DISTRIB_CODENAME-15 main" > /etc/apt/sources.list.d/llvm-15.list && \
echo "deb http://apt.llvm.org/$DISTRIB_CODENAME/ llvm-toolchain-$DISTRIB_CODENAME-14 main" > /etc/apt/sources.list.d/llvm-14.list && \
apt update && \
apt install -y build-essential clang-15 clang-tidy-15 llvm-15 lld-15 gcc-11 g++-11 curl wget sudo python3-pip git unzip && \
apt install -y build-essential clang-14 clang-tidy-14 llvm-14 lld-14 gcc-11 g++-11 curl wget sudo python3-pip git unzip && \
python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip && \
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && \
pip install -U cmake && \
Expand All @@ -72,18 +72,15 @@ RUN set -x && \
rm /usr/bin/ld && ln -sf /usr/bin/mold /usr/bin/ld && \
rm -rf /var/cache/apt/archives /var/lib/apt/lists && \
ln -sf /usr/bin/python3 /usr/bin/python && \
ln -sf /usr/bin/clang-15 /usr/bin/clang && \
ln -sf /usr/bin/clang++-15 /usr/bin/clang++ && \
ln -sf /usr/bin/lld-15 /usr/bin/lld && \
ln -sf /usr/bin/ld.lld-15 /usr/bin/ld.lld && \
ln -sf /usr/bin/clang-14 /usr/bin/clang && \
ln -sf /usr/bin/clang++-14 /usr/bin/clang++ && \
ln -sf /usr/bin/lld-14 /usr/bin/lld && \
ln -sf /usr/bin/ld.lld-14 /usr/bin/ld.lld && \
true

# mold version is not special, just the latest one at the time of writing
# lld is for AMDGPU backend, C++ code runs it.

ENV CC="/usr/bin/clang" \
CXX="/usr/bin/clang++"

# -------
SNIPPET debian-addons-test
ENV DEBIAN_FRONTEND=noninteractive
Expand Down Expand Up @@ -196,7 +193,6 @@ RUN set -x && \
'platforms;android-30' \
'platforms;android-33' \
'platform-tools' \
'patcher;v4' \
emulator \
&& \
chown -R 1000:1000 /android-sdk && \
Expand Down Expand Up @@ -271,7 +267,6 @@ RUN set -x && \
&& \
clang++ -v && \
true
ENV CC="clang" CXX="clang++"

FROM centos:7 AS manylinux2014
USE manylinux2014-addons
Expand Down
Loading