Added build script stuff.

This commit is contained in:
Patrick 2024-12-05 16:31:59 +01:00
parent 55893909f0
commit ee55878b18
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,11 @@
FROM debian:sid-slim
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get -y install build-essential clang-16 gcc-13 g++-13 python3 python3-pip \
virtualenv python-is-python3 clang-tidy git ninja-build cmake
RUN ln -s /usr/bin/clang-16 /usr/local/bin/clang \
&& ln -s /usr/bin/clang++-16 /usr/local/bin/clang++ \
&& ln -s /usr/bin/clang-tidy-16 /usr/local/bin/clang-tidy \
&& ln -s /usr/bin/run-clang-tidy-16 /usr/local/bin/run-clang-tidy
COPY scripts /opt/scripts

View File

@ -0,0 +1,9 @@
#!/bin/bash
set -xe
python -m virtualenv venv
source venv/bin/activate
pip install scons
pip install -r external/scons-plus-plus/requirements.txt
scons -j$(nproc) --build_type=debug --variant=linux_clang_debug --compiler=clang
scons -j$(nproc) --build_type=release_debug --variant=linux_clang_release_debug --compiler=clang
scons -j$(nproc) --build_type=release --variant=linux_clang_release --compiler=clang