File tree Expand file tree Collapse file tree 5 files changed +50
-21
lines changed
Expand file tree Collapse file tree 5 files changed +50
-21
lines changed Original file line number Diff line number Diff line change 11CXX = " clang++-19"
22CC = " clang-19"
3+ BUILD_TYPE = " Debug"
4+ GENERATOR = " Unix Makefiles"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : " linux"
2+ on :
3+ pull_request :
4+ push :
5+ jobs :
6+ build_clang :
7+ runs-on : ubuntu-latest
8+ strategy :
9+ matrix :
10+ cxx : [g++-12, clang++-18]
11+ build_type : [Debug, Release]
12+ steps :
13+ - uses : actions/checkout@master
14+ - uses : extractions/setup-just@v3
15+ - name : Prepare build environment
16+ run : |
17+ sudo apt update
18+ sudo apt install -y cmake just ninja-build ${{matrix.cxx}}
19+ - name : Prepare build directory
20+ env :
21+ CXX : ${{matrix.cxx}}
22+ BUILD_TYPE : ${{matrix.build_type}}
23+ run : |
24+ just init
25+ - name : Build project
26+ run : |
27+ just build
28+ - name : Run unit tests
29+ run : |
30+ just run_unit_tests
31+ - name : Run compliance tests
32+ if : ${{ matrix.cxx == 'clang++-18' }}
33+ run : |
34+ just run_compliance_tests
Original file line number Diff line number Diff line change @@ -6,20 +6,26 @@ alias tu := run_unit_tests
66alias tc := run_compliance_tests
77alias c := clean
88
9- cxx_compiler := " clang++-19"
10- c_compiler := " clang-19"
9+ set dotenv-load := true
10+
11+ cxx_compiler := " ${CXX}"
12+ c_compiler := " ${CC}"
13+ cmake_build_type := " ${BUILD_TYPE}"
14+ cmake_generator := " ${GENERATOR}"
1115build_dir := " build-" + cxx_compiler
1216ncores := ` nproc `
1317
1418default :
1519 @ just --list
1620
1721init :
22+ git submodule update --init
1823 mkdir -p {{ build_dir}}
1924 CC={{ c_compiler}} CXX={{ cxx_compiler}} cmake \
2025 - B {{ build_dir}} \
2126 - S . \
2227 - G Ninja \
28+ - DCMAKE_BUILD_TYPE={{ cmake_build_type}} \
2329 - DWITH_UNIT_TESTS=on \
2430 - DWITH_COMPLIANCE_TESTS=on \
2531 - DWITH_EXAMPLES=on
Original file line number Diff line number Diff line change 11# TODOs
22
33
4+ ## 2025-04-06
5+
6+ H[] setup CI
7+
48## 2025-04-05
59
6- H[] provide some unit tests for evaluator
7- H[] make fuzz-tests compiler-agnostic
10+ H[x ] provide some unit tests for evaluator
11+ H[] ~~ make fuzz-tests compiler-agnostic~~ not possible
812H[] prepare examples with optimizers like libcmaes and one more
913H[] write documentation (maybe with mkdocs?)
1014H[] review code
You can’t perform that action at this time.
0 commit comments