diff --git a/tools/ci/amd64/clang/coverage.dockerfile b/tools/ci/amd64/clang/coverage.dockerfile deleted file mode 100644 index 43d8970..0000000 --- a/tools/ci/amd64/clang/coverage.dockerfile +++ /dev/null @@ -1,59 +0,0 @@ -FROM archlinux:latest - -RUN pacman -Syu --noconfirm --disable-download-timeout \ - && pacman -S --noconfirm --disable-download-timeout reflector \ - && reflector --verbose --latest 10 --protocol https --sort rate --save /etc/pacman.d/mirrorlist \ - && sed -i 's/^#ParallelDownloads = .*/ParallelDownloads = 8/' /etc/pacman.conf \ - -RUN pacman -S --noconfirm --disable-download-timeout \ - bash \ - base-devel \ - git \ - cmake \ - python \ - python-pip \ - clang \ - gcc \ - llvm \ - mesa \ - mold \ - ninja \ - curl \ - wget \ - zlib \ - libc++ \ - libinput \ - xorg-server-xvfb \ - libx11 \ - libxrandr \ - libxinerama \ - libxcursor \ - libxi - -RUN pip install --no-cache-dir --break-system-packages conan gitpython \ - && conan profile detect - -RUN pip --version \ - && conan --version \ - && cmake --version \ - && g++ --version \ - && clang --version \ - && ninja --version \ - && mold --version \ - && llvm-profdata --version \ - && llvm-cov --version - -RUN git clone 'https://git.light7734.com/light7734/light.git' \ - && cd light \ - && conan build . \ - -c tools.system.package_manager:mode=install \ - -c tools.cmake.cmaketoolchain:generator=Ninja \ - -c tools.build:compiler_executables='{"c": "clang", "cpp": "clang++"}' \ - -s build_type=Release \ - -s compiler=clang \ - -s compiler.version=20 \ - -s compiler.libcxx=libc++ \ - -o use_mold=True \ - -o enable_llvm_coverage=True \ - --build=missing \ - && rm -r ../light/ diff --git a/tools/ci/amd64/clang/fuzz.dockerfile b/tools/ci/amd64/clang/fuzz.dockerfile deleted file mode 100644 index 83342ae..0000000 --- a/tools/ci/amd64/clang/fuzz.dockerfile +++ /dev/null @@ -1,72 +0,0 @@ -FROM archlinux:base-devel - -RUN pacman -Syyu --noconfirm && \ - pacman -S --noconfirm \ - bash \ - base-devel \ - clang \ - llvm \ - libc++ \ - cmake \ - git \ - python \ - python-pip \ - mesa \ - mold \ - ninja \ - zlib \ - libc++ \ - libinput \ - xorg-server-xvfb \ - libx11 \ - libxrandr \ - libxinerama \ - libxcursor \ - libxi \ - afl++ \ - afl-utils - -RUN pip install --no-cache-dir --break-system-packages conan gitpython \ - && conan profile detect - -RUN clang --version \ - && conan --version \ - && pip --version \ - && cmake --version \ - && g++ --version \ - && clang --version \ - && ninja --version \ - && mold --version \ - && afl-fuzz --version \ - && afl-clang-lto --version \ - && afl-clang-lto++ --version - -RUN git clone 'https://git.light7734.com/light7734/light.git' --depth=1 \ - && cd light \ - && export CC=$(which afl-clang-lto) \ - && export CXX=$(which afl-clang-lto++) \ - && export AR=$(which llvm-ar) \ - && export RANLIB=$(which llvm-ranlib) \ - && export AS=$(which llvm-as) \ - && conan install . \ - -c tools.system.package_manager:mode=install \ - -c tools.cmake.cmaketoolchain:generator=Ninja \ - -c tools.build:compiler_executables='{"c": "afl-clang-lto", "cpp": "afl-clang-lto++"}' \ - -s build_type=Release \ - -s compiler=clang \ - -s compiler.version=20 \ - -s compiler.libcxx=libc++ \ - -o use_mold=True \ - --build=missing \ - && conan install . \ - -c tools.system.package_manager:mode=install \ - -c tools.cmake.cmaketoolchain:generator=Ninja \ - -c tools.build:compiler_executables='{"c": "clang", "cpp": "clang++"}' \ - -s build_type=Release \ - -s compiler=clang \ - -s compiler.version=20 \ - -s compiler.libcxx=libc++ \ - -o use_mold=True \ - -o enable_llvm_coverage=True \ - --build=missing \ - && rm -r ../light/ diff --git a/tools/ci/amd64/clang/lsan.dockerfile b/tools/ci/amd64/clang/lsan.dockerfile deleted file mode 100644 index 4863e10..0000000 --- a/tools/ci/amd64/clang/lsan.dockerfile +++ /dev/null @@ -1,75 +0,0 @@ -FROM archlinux:base-devel - -RUN pacman -Syu --noconfirm && \ - pacman -S --noconfirm \ - bash \ - base-devel \ - clang \ - llvm \ - cmake \ - git \ - python \ - python-pip \ - mesa \ - mold \ - ninja \ - zlib \ - libc++ \ - libinput \ - libunwind \ - xorg-server-xvfb \ - libx11 \ - libxrandr \ - libxinerama \ - libxcursor \ - libxi - -RUN pip install --no-cache-dir --break-system-packages conan gitpython \ - && conan profile detect - -RUN clang --version \ - && conan --version \ - && pip --version \ - && cmake --version \ - && g++ --version \ - && clang --version \ - && ninja --version \ - && mold --version - -RUN git clone --depth=1 https://github.com/llvm/llvm-project.git -b llvmorg-20.1.8 \ - && cd llvm-project/ \ - && mkdir build/ \ - && cd build/ \ - && cmake \ - -G Ninja \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_LINKER_TYPE="MOLD" \ - -DCMAKE_INSTALL_PREFIX=/libcxx_lsan \ - -DCMAKE_C_COMPILER=clang \ - -DCMAKE_CXX_COMPILER=clang++ \ - -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi" \ - -DLLVM_ENABLE_PIC=ON \ - -DLIBCXX_INSTALL_MODULES=ON \ - -DLIBCXXABI_USE_LLVM_UNWINDER=OFF \ - -DLLVM_USE_SANITIZER=Leaks \ - ../runtimes \ - && ninja cxx cxxabi \ - && ninja -C . install-cxx install-cxxabi \ - && rm -r /llvm-project/ - -RUN git clone 'https://git.light7734.com/light7734/light.git' \ - && cd light \ - && conan install . \ - -c tools.system.package_manager:mode=install \ - -c tools.cmake.cmaketoolchain:generator=Ninja \ - -c tools.build:cxxflags='["-g", "-fno-omit-frame-pointer", "-nostdinc++", "-isystem", "/libcxx_lsan/include/c++/v1/", "-fsanitize=leak"]' \ - -c tools.build:sharedlinkflags='["-L/libcxx_lsan/lib", "-Wl,-rpath,/libcxx_lsan/lib", "-lc++", "-lc++abi", "-fsanitize=leak"]' \ - -c tools.build:exelinkflags='["-L/libcxx_lsan/lib", "-Wl,-rpath,/libcxx_lsan/lib", "-lc++", "-lc++abi", "-fsanitize=leak"]' \ - -c tools.info.package_id:confs='["tools.build:cxxflags","tools.build:sharedlinkflags","tools.build:exelinkflags"]' \ - -c tools.build:compiler_executables='{"c": "clang", "cpp": "clang++"}' \ - -s build_type=Release \ - -s compiler=clang \ - -s compiler.version=20 \ - -s compiler.libcxx=libc++ \ - -o use_mold=True \ - --build=missing diff --git a/tools/ci/amd64/clang/msan.dockerfile b/tools/ci/amd64/clang/msan.dockerfile deleted file mode 100644 index 2fc9668..0000000 --- a/tools/ci/amd64/clang/msan.dockerfile +++ /dev/null @@ -1,77 +0,0 @@ -FROM archlinux:base-devel - -RUN pacman -Syu --noconfirm && \ - pacman -S --noconfirm \ - bash \ - base-devel \ - clang \ - llvm \ - cmake \ - git \ - python \ - python-pip \ - mesa \ - mold \ - ninja \ - zlib \ - libc++ \ - libinput \ - libunwind \ - xorg-server-xvfb \ - libx11 \ - libxrandr \ - libxinerama \ - libxcursor \ - libxi \ - xcb-util-cursor - - -RUN pip install --no-cache-dir --break-system-packages conan gitpython \ - && conan profile detect - -RUN clang --version \ - && conan --version \ - && pip --version \ - && cmake --version \ - && g++ --version \ - && clang --version \ - && ninja --version \ - && mold --version - -RUN git clone --depth=1 https://github.com/llvm/llvm-project.git -b llvmorg-20.1.8 \ - && cd llvm-project/ \ - && mkdir build/ \ - && cd build/ \ - && cmake \ - -G Ninja \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_LINKER_TYPE="MOLD" \ - -DCMAKE_INSTALL_PREFIX=/libcxx_msan \ - -DCMAKE_C_COMPILER=clang \ - -DCMAKE_CXX_COMPILER=clang++ \ - -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi" \ - -DLLVM_ENABLE_PIC=ON \ - -DLIBCXX_INSTALL_MODULES=ON \ - -DLIBCXXABI_USE_LLVM_UNWINDER=OFF \ - -DLLVM_USE_SANITIZER=MemoryWithOrigins \ - ../runtimes \ - && ninja cxx cxxabi \ - && ninja -C . install-cxx install-cxxabi \ - && rm -r /llvm-project/ - -RUN git clone 'https://git.light7734.com/light7734/light.git' \ - && cd light \ - && conan install . \ - -c tools.system.package_manager:mode=install \ - -c tools.cmake.cmaketoolchain:generator=Ninja \ - -c tools.build:cxxflags='["-g", "-fno-omit-frame-pointer", "-nostdinc++", "-isystem", "/libcxx_msan/include/c++/v1/", "-fsanitize=memory", "-fsanitize-memory-track-origins"]' \ - -c tools.build:sharedlinkflags='["-L/libcxx_msan/lib", "-Wl,-rpath,/libcxx_msan/lib", "-lc++", "-lc++abi", "-fsanitize=memory", "-fsanitize-memory-track-origins"]' \ - -c tools.build:exelinkflags='["-L/libcxx_msan/lib", "-Wl,-rpath,/libcxx_msan/lib", "-lc++", "-lc++abi", "-fsanitize=memory", "-fsanitize-memory-track-origins"]' \ - -c tools.info.package_id:confs='["tools.build:cxxflags","tools.build:sharedlinkflags","tools.build:exelinkflags"]' \ - -c tools.build:compiler_executables='{"c": "clang", "cpp": "clang++"}' \ - -s build_type=Release \ - -s compiler=clang \ - -s compiler.version=20 \ - -s compiler.libcxx=libc++ \ - -o use_mold=True \ - --build=missing diff --git a/tools/ci/amd64/gcc/unit_tests.dockerfile b/tools/ci/amd64/gcc/unit_tests.dockerfile deleted file mode 100644 index 7cf59a4..0000000 --- a/tools/ci/amd64/gcc/unit_tests.dockerfile +++ /dev/null @@ -1,66 +0,0 @@ -FROM archlinux:base-devel - -RUN pacman -Syu --noconfirm --disable-download-timeout \ - && pacman -S --noconfirm --needed --disable-download-timeout reflector \ - && reflector --verbose --latest 10 --protocol https --sort rate --save /etc/pacman.d/mirrorlist \ - && sed -i 's/^#ParallelDownloads = .*/ParallelDownloads = 9/' /etc/pacman.conf - -RUN pacman -S --noconfirm --needed --disable-download-timeout \ - bash \ - base-devel \ - git \ - cmake \ - python \ - python-pip \ - clang \ - gcc \ - llvm \ - mesa \ - ninja \ - mold \ - curl \ - wget \ - zlib \ - libc++ \ - libinput \ - xorg-server-xvfb \ - libx11 \ - libxrandr \ - libxinerama \ - libxcursor \ - libxi \ - xcb-util-cursor - -RUN pip install --no-cache-dir --break-system-packages \ - conan \ - gitpython \ - && conan profile detect - -RUN clang --version \ - && conan --version \ - && pip --version \ - && cmake --version \ - && g++ --version \ - && clang --version \ - && ninja --version \ - && mold --version - -# We `build` instead of `install` to make sure the project can be built with the current image state. -RUN git clone 'https://git.light7734.com/light7734/light.git' --depth=1 \ - && cd light \ - && conan build . \ - -c tools.system.package_manager:mode=install \ - -c tools.cmake.cmaketoolchain:generator=Ninja \ - -c tools.build:compiler_executables='{"c": "gcc", "cpp": "g++"}' \ - -s build_type=Release \ - -s compiler=gcc \ - -s compiler.version=15 \ - -s compiler.libcxx=libstdc++ \ - -o enable_unit_tests=True \ - -o enable_fuzz_tests=False \ - -o enable_llvm_coverage=False \ - -o enable_static_analysis=False \ - -o use_mold=True \ - -o export_compile_commands=False \ - --build=missing \ - && rm -rf ../light diff --git a/tools/ci/amd64/gcc/valgrind.dockerfile b/tools/ci/amd64/gcc/valgrind.dockerfile deleted file mode 100644 index 1487929..0000000 --- a/tools/ci/amd64/gcc/valgrind.dockerfile +++ /dev/null @@ -1,69 +0,0 @@ -FROM archlinux:base-devel - -RUN pacman -Syu --noconfirm --disable-download-timeout \ - && pacman -S --noconfirm --needed --disable-download-timeout reflector \ - && reflector --verbose --latest 10 --protocol https --sort rate --save /etc/pacman.d/mirrorlist \ - && sed -i 's/^#ParallelDownloads = .*/ParallelDownloads = 9/' /etc/pacman.conf - -RUN pacman -S --noconfirm --needed --disable-download-timeout \ - bash \ - base-devel \ - git \ - cmake \ - python \ - python-pip \ - clang \ - gcc \ - llvm \ - mesa \ - ninja \ - mold \ - valgrind \ - curl \ - wget \ - zlib \ - libc++ \ - libinput \ - xorg-server-xvfb \ - libx11 \ - libxrandr \ - libxinerama \ - libxcursor \ - libxi \ - xcb-util-cursor - - -RUN pip install --no-cache-dir --break-system-packages \ - conan \ - gitpython \ - && conan profile detect - -RUN clang --version \ - && conan --version \ - && pip --version \ - && cmake --version \ - && g++ --version \ - && clang --version \ - && ninja --version \ - && mold --version \ - && valgrind --version - -# We `build` instead of `install` to make sure the project can be built with the current image state. -RUN git clone 'https://git.light7734.com/light7734/light.git' --depth=1 \ - && cd light \ - && conan build . \ - -c tools.system.package_manager:mode=install \ - -c tools.cmake.cmaketoolchain:generator=Ninja \ - -c tools.build:compiler_executables='{"c": "gcc", "cpp": "g++"}' \ - -s build_type=Release \ - -s compiler=gcc \ - -s compiler.version=15 \ - -s compiler.libcxx=libstdc++ \ - -o enable_unit_tests=True \ - -o enable_fuzz_tests=False \ - -o enable_llvm_coverage=False \ - -o enable_static_analysis=False \ - -o use_mold=True \ - -o export_compile_commands=False \ - --build=missing \ - && rm -rf ../light