Compare commits

..

16 commits
main ... v0.0.1

Author SHA1 Message Date
0d2166e9ef
ci: add deployment pipeline for production documentation
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/pr Build is passing
2025-08-23 15:03:07 +03:30
d9079ac373
revert: last commit
All checks were successful
continuous-integration/drone/pr Build is passing
2025-08-23 15:00:22 +03:30
e5ba9f85f8
testing if deployment works
All checks were successful
continuous-integration/drone/pr Build is passing
2025-08-23 14:59:44 +03:30
c717e40551
ci: remove sudo
All checks were successful
continuous-integration/drone/pr Build is passing
2025-08-23 14:58:54 +03:30
ab9bf1540b
revert: last commit changes
Some checks failed
continuous-integration/drone/pr Build is failing
2025-08-23 14:58:10 +03:30
b29b07cbe7
ci: elevated doc step
Some checks reported errors
continuous-integration/drone/pr Build encountered an error
2025-08-23 14:57:33 +03:30
11a4d6d17d
ci: move documentation step to ryali
Some checks reported errors
continuous-integration/drone/pr Build encountered an error
2025-08-23 14:55:59 +03:30
cec117d127
ci: fix quote problem (i hope)
Some checks reported errors
continuous-integration/drone/pr Build was killed
2025-08-23 14:45:55 +03:30
03916b0f3e
ci: remote -tt option from ssh commands
Some checks failed
continuous-integration/drone/pr Build is failing
2025-08-23 14:42:35 +03:30
756b5aee81
ci: fix fix fix
Some checks failed
continuous-integration/drone/pr Build is failing
2025-08-23 14:35:25 +03:30
6c16d0198e
fix: idk
Some checks failed
continuous-integration/drone/pr Build is failing
2025-08-23 14:32:24 +03:30
75af6e2436
fix: the thing
Some checks failed
continuous-integration/drone/pr Build is failing
2025-08-23 14:28:12 +03:30
63dac34b28
ci: fix unterminated quoted string error
Some checks failed
continuous-integration/drone/pr Build is failing
2025-08-23 14:16:17 +03:30
5201bdf0f5
ci: fix unterminated quoted string error
Some checks failed
continuous-integration/drone/pr Build is failing
2025-08-23 14:09:35 +03:30
e045e6614b
ci: add pull if required
Some checks failed
continuous-integration/drone/pr Build is failing
2025-08-23 13:40:50 +03:30
e077eae6ed
ci: add documentation pipeline stage for development branch
Some checks reported errors
continuous-integration/drone/pr Build was killed
2025-08-23 13:38:34 +03:30
9 changed files with 101 additions and 110 deletions

View file

@ -1,94 +1,94 @@
---
kind: pipeline
type: exec
name: amd64 — msvc
trigger:
branch:
- main
platform:
os: windows
arch: amd64
# ---
# kind: pipeline
# type: exec
# name: amd64 — msvc
# trigger:
# branch:
# - main
# platform:
# os: windows
# arch: amd64
#
# steps:
# - name: unit tests
# shell: powershell
# commands:
# - ./tools/ci/amd64/msvc/unit_tests.ps1
#
# ---
# kind: pipeline
# type: docker
# name: amd64 — gcc
# trigger:
# branch:
# - main
#
# steps:
# - name: unit tests
# image: amd64_gcc_unit_tests:latest
# pull: if-not-exists
# commands:
# - ./tools/ci/amd64/gcc/unit_tests.sh
#
# - name: valgrind
# image: amd64_gcc_valgrind:latest
# pull: if-not-exists
# commands:
# - ./tools/ci/amd64/gcc/valgrind.sh
#
# ---
# kind: pipeline
# type: docker
# name: amd64 — clang
# trigger:
# branch:
# - main
#
# steps:
# - name: code coverage
# image: amd64_clang_coverage:latest
# pull: if-not-exists
# environment:
# CODECOV_TOKEN:
# from_secret: CODECOV_TOKEN
# commands:
# - ./tools/ci/amd64/clang/coverage.sh
#
# - name: leak sanitizer
# image: amd64_clang_lsan:latest
# pull: if-not-exists
# commands:
# - ./tools/ci/amd64/clang/lsan.sh
#
# - name: memory sanitizer
# image: amd64_clang_msan:latest
# pull: if-not-exists
# commands:
# - ./tools/ci/amd64/clang/msan.sh
#
# ---
# kind: pipeline
# type: docker
# name: static analysis
# trigger:
# branch:
# - main
#
# steps:
# - name: clang tidy
# image: clang_tidy:latest
# pull: if-not-exists
# privileged: true
# commands:
# - ./tools/ci/static_analysis/clang_tidy.sh
#
# - name: clang format
# image: clang_format:latest
# pull: if-not-exists
# commands:
# - ./tools/ci/static_analysis/clang_format.sh
steps:
- name: unit tests
shell: powershell
commands:
- ./tools/ci/amd64/msvc/unit_tests.ps1
---
kind: pipeline
type: docker
name: amd64 — gcc
trigger:
branch:
- main
steps:
- name: unit tests
image: amd64_gcc_unit_tests:latest
pull: if-not-exists
commands:
- ./tools/ci/amd64/gcc/unit_tests.sh
- name: valgrind
image: amd64_gcc_valgrind:latest
pull: if-not-exists
commands:
- ./tools/ci/amd64/gcc/valgrind.sh
---
kind: pipeline
type: docker
name: amd64 — clang
trigger:
branch:
- main
steps:
- name: code coverage
image: amd64_clang_coverage:latest
pull: if-not-exists
environment:
CODECOV_TOKEN:
from_secret: CODECOV_TOKEN
commands:
- ./tools/ci/amd64/clang/coverage.sh
- name: leak sanitizer
image: amd64_clang_lsan:latest
pull: if-not-exists
commands:
- ./tools/ci/amd64/clang/lsan.sh
- name: memory sanitizer
image: amd64_clang_msan:latest
pull: if-not-exists
commands:
- ./tools/ci/amd64/clang/msan.sh
---
kind: pipeline
type: docker
name: static analysis
trigger:
branch:
- main
steps:
- name: clang tidy
image: clang_tidy:latest
pull: if-not-exists
privileged: true
commands:
- ./tools/ci/static_analysis/clang_tidy.sh
- name: clang format
image: clang_format:latest
pull: if-not-exists
commands:
- ./tools/ci/static_analysis/clang_format.sh
---
# ---
kind: pipeline
type: docker
name: documentation — development

View file

@ -8,8 +8,7 @@ include(${CMAKE_DIR}/functions.cmake)
include(${CMAKE_DIR}/definitions.cmake)
include(${CMAKE_DIR}/dependencies.cmake)
add_option(ENABLE_UNIT_TESTS "Enables the building of the unit test modules")
add_option(ENABLE_FUZZ_TESTS "Enables the building of the fuzz test modules")
add_option(ENABLE_TESTS "Enables the building of the test modules")
add_option(ENABLE_STATIC_ANALYSIS "Makes clang-tidy checks mandatory for compilation")
if (ENABLE_STATIC_ANALYSIS)

View file

@ -11,8 +11,7 @@ class LightRecipe(ConanFile):
generators = "CMakeDeps"
options = {
"enable_unit_tests": [True, False],
"enable_fuzz_tests": [True, False],
"enable_tests": [True, False],
"enable_llvm_coverage": [True, False],
"enable_static_analysis": [True, False],
"use_mold": [True, False],
@ -20,8 +19,7 @@ class LightRecipe(ConanFile):
}
default_options = {
"enable_unit_tests": True,
"enable_fuzz_tests": False,
"enable_tests": True,
"enable_llvm_coverage": False,
"enable_static_analysis": False,
"use_mold": False,
@ -48,8 +46,7 @@ class LightRecipe(ConanFile):
tc.cache_variables["CMAKE_LINKER_TYPE"] = "MOLD"
tc.cache_variables["CMAKE_EXPORT_COMPILE_COMMANDS"] = self.options.export_compile_commands
tc.cache_variables["ENABLE_UNIT_TESTS"] = self.options.enable_unit_tests
tc.cache_variables["ENABLE_FUZZ_TESTS"] = self.options.enable_fuzz_tests
tc.cache_variables["ENABLE_TESTS"] = self.options.enable_tests
tc.cache_variables["ENABLE_LLVM_COVERAGE"] = self.options.enable_llvm_coverage
tc.cache_variables["ENABLE_STATIC_ANALYSIS"] = self.options.enable_static_analysis

View file

@ -21,8 +21,7 @@ RUN pacman -S --noconfirm --disable-download-timeout \
curl \
wget \
zlib \
libc++ \
libinput
libc++
RUN pip install --no-cache-dir --break-system-packages conan gitpython \
&& conan profile detect
@ -38,7 +37,7 @@ RUN pip --version \
&& llvm-cov --version
RUN git clone 'https://git.light7734.com/light7734/light.git' \
&& cd light \
&& cd light; git checkout 'ci/code_cov' \
&& conan build . \
-c tools.system.package_manager:mode=install \
-c tools.cmake.cmaketoolchain:generator=Ninja \

View file

@ -4,9 +4,6 @@ set -e
cd $(git rev-parse --show-toplevel)/
rm -rf ./build
Xvfb :99 -screen 0 1024x768x16 &
export DISPLAY=:99
conan build . \
-c tools.system.package_manager:mode=install \
-c tools.cmake.cmaketoolchain:generator=Ninja \

View file

@ -8,7 +8,7 @@ conan build . \
-c tools.system.package_manager:mode=install \
-c tools.cmake.cmaketoolchain:generator=Ninja \
-s build_type=Release \
-o enable_unit_tests=True \
-o enable_tests=True \
-o use_mold=True \
--build=missing

View file

@ -8,7 +8,7 @@ conan build . \
-c tools.system.package_manager:mode=install \
-c tools.cmake.cmaketoolchain:generator=Ninja \
-s build_type=Release \
-o enable_unit_tests=True \
-o enable_tests=True \
-o use_mold=True \
--build=missing

View file

@ -14,7 +14,6 @@ conan build . \
-c tools.cmake.cmaketoolchain:generator=Ninja \
-s build_type=Release \
-o enable_static_analysis=True \
-o enable_unit_tests=True \
-o enable_fuzz_tests=True \
-o enable_tests=True \
-o use_mold=True \
--build=missing

View file

@ -78,7 +78,7 @@ function (add_executable_module exename)
endfunction ()
function (add_test_module target_lib_name)
if (NOT ${ENABLE_UNIT_TESTS})
if (NOT ${ENABLE_TESTS})
return()
endif ()
@ -114,7 +114,7 @@ function (add_test_module target_lib_name)
endfunction ()
function (add_fuzz_module target_lib_name)
if (NOT ${ENABLE_FUZZ_TESTS})
if (NOT ${ENABLE_TESTS})
return()
endif ()