use clang instead of gcc
All checks were successful
Build Clang P2996 / build (push) Successful in 1h3m0s

This commit is contained in:
2025-11-12 03:06:27 +01:00
parent 9c476b83b2
commit 4a56d347c9

View File

@@ -25,14 +25,15 @@ jobs:
python3 \
python3-pip \
zlib1g-dev \
build-essential
build-essential \
lld \
clang
pip3 install PyYAML>=5.1
- name: Install CMake (from source)
run: |
apt-get update && apt-get install -y \
wget \
build-essential \
libssl-dev
CMAKE_VERSION=3.28.3
@@ -43,20 +44,22 @@ jobs:
./bootstrap --prefix=/usr/local
make -j$(nproc)
make install
cmake --version
- name: Configure Clang
- name: Configure Clang (using Clang)
run: |
export CC=clang
export CXX=clang++
cmake -S llvm -B build \
-DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra' \
-DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi;libunwind' \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${INSTALL_PATH}
-DCMAKE_INSTALL_PREFIX=${INSTALL_PATH} \
-DLLVM_ENABLE_LLD=ON
- name: Build Clang
run: |
cmake --build build --parallel=4
cmake --build build --parallel=$(nproc)
- name: Install
run: |
@@ -64,11 +67,11 @@ jobs:
- name: Package artifact
run: |
tar -czf clang-install.tar.gz -C ${INSTALL_PATH} .
tar -czf clang-p2996.tar.gz -C ${INSTALL_PATH} .
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: clang-p2996
path: clang-p2996tar.gz
path: clang-p2996.tar.gz