Skip to content

Commit 1bedf98

Browse files
committed
f
1 parent 815bc88 commit 1bedf98

File tree

5 files changed

+50
-21
lines changed

5 files changed

+50
-21
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
CXX="clang++-19"
22
CC="clang-19"
3+
BUILD_TYPE="Debug"
4+
GENERATOR="Unix Makefiles"

.github/workflows/CMocka-test.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/linux.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

Justfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,26 @@ alias tu := run_unit_tests
66
alias tc := run_compliance_tests
77
alias 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}"
1115
build_dir := "build-" + cxx_compiler
1216
ncores := `nproc`
1317

1418
default:
1519
@just --list
1620

1721
init:
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

TODO

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
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
812
H[] prepare examples with optimizers like libcmaes and one more
913
H[] write documentation (maybe with mkdocs?)
1014
H[] review code

0 commit comments

Comments
 (0)