wip
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
light7734 2025-10-09 19:53:18 +03:30
parent 847ad7dd74
commit 3fed6aa4f2
Signed by: light7734
GPG key ID: 8C30176798F1A6BA
3 changed files with 135 additions and 131 deletions

View file

@ -1,42 +1,42 @@
--- # ---
kind: pipeline # kind: pipeline
type: exec # type: exec
name: amd64 — msvc # name: amd64 — msvc
trigger: # trigger:
branch: # branch:
- main # - main
platform: # platform:
os: windows # os: windows
arch: amd64 # arch: amd64
#
steps: # steps:
- name: unit tests # - name: unit tests
shell: powershell # shell: powershell
commands: # commands:
- ./tools/ci/amd64/msvc/unit_tests.ps1 # - ./tools/ci/amd64/msvc/unit_tests.ps1
#
--- # ---
kind: pipeline # kind: pipeline
type: docker # type: docker
name: amd64 — gcc # name: amd64 — gcc
trigger: # trigger:
branch: # branch:
- main # - main
#
steps: # steps:
- name: unit tests # - name: unit tests
image: ci:latest # image: ci:latest
pull: if-not-exists # pull: if-not-exists
commands: # commands:
- ./tools/ci/amd64/gcc/unit_tests.sh # - ./tools/ci/amd64/gcc/unit_tests.sh
#
- name: valgrind # - name: valgrind
image: ci:latest # image: ci:latest
pull: if-not-exists # pull: if-not-exists
commands: # commands:
- ./tools/ci/amd64/gcc/valgrind.sh # - ./tools/ci/amd64/gcc/valgrind.sh
#
--- # ---
kind: pipeline kind: pipeline
type: docker type: docker
name: amd64 — clang name: amd64 — clang
@ -45,95 +45,95 @@ trigger:
- main - main
steps: steps:
- name: code coverage # - name: code coverage
image: ci:latest # image: ci:latest
pull: if-not-exists # pull: if-not-exists
environment: # environment:
CODECOV_TOKEN: # CODECOV_TOKEN:
from_secret: CODECOV_TOKEN # from_secret: CODECOV_TOKEN
commands: # commands:
- ./tools/ci/amd64/clang/coverage.sh # - ./tools/ci/amd64/clang/coverage.sh
#
- name: leak sanitizer # - name: leak sanitizer
image: ci:latest # image: ci:latest
pull: if-not-exists # pull: if-not-exists
commands: # commands:
- ./tools/ci/amd64/clang/lsan.sh # - ./tools/ci/amd64/clang/lsan.sh
#
- name: memory sanitizer - name: memory sanitizer
image: ci:latest image: ci:latest
pull: if-not-exists pull: if-not-exists
commands: commands:
- ./tools/ci/amd64/clang/msan.sh - ./tools/ci/amd64/clang/msan.sh
#
--- # ---
kind: pipeline # kind: pipeline
type: docker # type: docker
name: static analysis # name: static analysis
trigger: # trigger:
branch: # branch:
- main # - main
#
steps: # steps:
- name: clang tidy # - name: clang tidy
image: ci:latest # image: ci:latest
pull: if-not-exists # pull: if-not-exists
privileged: true # privileged: true
commands: # commands:
- ./tools/ci/static_analysis/clang_tidy.sh # - ./tools/ci/static_analysis/clang_tidy.sh
#
- name: clang format # - name: clang format
image: ci:latest # image: ci:latest
pull: if-not-exists # pull: if-not-exists
commands: # commands:
- ./tools/ci/static_analysis/clang_format.sh # - ./tools/ci/static_analysis/clang_format.sh
#
--- # ---
kind: pipeline # kind: pipeline
type: docker # type: docker
name: documentation — development # name: documentation — development
node: # node:
environment: ryali # environment: ryali
trigger: # trigger:
branch: # branch:
- main # - main
#
steps: # steps:
- name: build and deploy # - name: build and deploy
image: documentation:latest # image: documentation:latest
pull: if-not-exists # pull: if-not-exists
commands: # commands:
- pwd # - pwd
- cd docs # - cd docs
- mkdir generated # - mkdir generated
- touch generated/changelogs.rst # - touch generated/changelogs.rst
- touch generated/api.rst # - touch generated/api.rst
- sphinx-build -M html . . # - sphinx-build -M html . .
#
- rm -rf /light_docs_dev/* # - rm -rf /light_docs_dev/*
- mv ./html/* /light_docs_dev/ # - mv ./html/* /light_docs_dev/
#
--- # ---
#
kind: pipeline # kind: pipeline
type: docker # type: docker
name: documentation — production # name: documentation — production
node: # node:
environment: ryali # environment: ryali
trigger: # trigger:
event: # event:
- tag # - tag
#
steps: # steps:
- name: build and deploy # - name: build and deploy
image: documentation:latest # image: documentation:latest
pull: if-not-exists # pull: if-not-exists
commands: # commands:
- cd docs # - cd docs
- mkdir generated # - mkdir generated
- touch generated/changelogs.rst # - touch generated/changelogs.rst
- touch generated/api.rst # - touch generated/api.rst
- sphinx-build -M html . . # - sphinx-build -M html . .
#
- rm -rf /light_docs/* # - rm -rf /light_docs/*
- mv ./html/* /light_docs/ # - mv ./html/* /light_docs/

View file

@ -17,9 +17,9 @@ cmake . \
-DCMAKE_BUILD_TYPE=Debug \ -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_FLAGS=" \ -DCMAKE_CXX_FLAGS=" \
-fsanitize=leak \ -fsanitize=leak \
-fno-omit-frame-pointer \
-fno-common \ -fno-common \
-g \ -g \
-fno-omit-frame-pointer \
-std=c++23 \ -std=c++23 \
-nostdinc++ \ -nostdinc++ \
-isystem /libcxx_lsan/include/c++/v1/" \ -isystem /libcxx_lsan/include/c++/v1/" \
@ -29,7 +29,7 @@ cmake . \
-lc++ \ -lc++ \
-lc++abi \ -lc++abi \
-Wl,-rpath,/libcxx_lsan/lib" \ -Wl,-rpath,/libcxx_lsan/lib" \
&& cmake --build ./build --target='renderer_tests' -j`nproc` && cmake --build ./build -j`nproc`
export LSAN_OPTIONS="suppressions=$(git rev-parse --show-toplevel)/tools/ci/amd64/clang/lsan.supp:fast_unwind_on_malloc=0:verbosity=1:report_objects=1" export LSAN_OPTIONS="suppressions=$(git rev-parse --show-toplevel)/tools/ci/amd64/clang/lsan.supp:fast_unwind_on_malloc=0:verbosity=1:report_objects=1"
export LSAN_SYMBOLIZER_PATH="$(which llvm-symbolizer)" export LSAN_SYMBOLIZER_PATH="$(which llvm-symbolizer)"

View file

@ -8,10 +8,14 @@ Xvfb :99 -screen 0 1024x768x16 &
export CXX=$(which clang++) export CXX=$(which clang++)
export CC=$(which clang) export CC=$(which clang)
export DISPLAY=:99 export DISPLAY=:99
export PKG_CONFIG_PATH=/msan/lib/pkgconfig:${PKG_CONFIG_PATH}
cmake . \ cmake . \
-Bbuild \ -Bbuild \
-GNinja \ -GNinja \
-DCMAKE_INCLUDE_PATH=/msan/include \
-DCMAKE_LIBRARY_PATH=/msan/lib \
-DCMAKE_PREFIX_PATH=/msan \
-DCMAKE_LINKER_TYPE=MOLD \ -DCMAKE_LINKER_TYPE=MOLD \
-DENABLE_UNIT_TESTS=ON \ -DENABLE_UNIT_TESTS=ON \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
@ -26,10 +30,10 @@ cmake . \
-DCMAKE_EXE_LINKER_FLAGS=" \ -DCMAKE_EXE_LINKER_FLAGS=" \
-fsanitize=memory \ -fsanitize=memory \
-fsanitize-memory-track-origins \ -fsanitize-memory-track-origins \
-L/libcxx_msan/lib \ -L/msan/lib -Wl,-rpath,/msan/lib \
-L/libcxx_msan/lib -Wl,-rpath,/libcxx_msan/lib \
-lc++ \ -lc++ \
-lc++abi \ -lc++abi" \
-Wl,-rpath,/libcxx_msan/lib" \
&& cmake --build ./build -j`nproc` && cmake --build ./build -j`nproc`
for test in $(find ./build -type f -name '*_tests' -executable); do for test in $(find ./build -type f -name '*_tests' -executable); do