Skip to content

Commit 3497ede

Browse files
committed
ci: ubuntu: compile & test on (Clang, libc++, lld) trio too
1 parent d588fe3 commit 3497ede

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/build-run-tests-ubuntu.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,23 @@ jobs:
1010
- name: Checkout ZeCalculator
1111
uses: actions/checkout@v3
1212

13-
- name: Install meson and ninja
14-
run: sudo apt install meson ninja-build
13+
- name: Install dependencies
14+
run: sudo apt install meson ninja-build clang-19 lld-19 libc++-19-dev cmake
1515

16-
- name: Setup meson build folder
16+
- name: Setup meson build folder (GCC)
1717
run: meson setup build -D test=true -D b_sanitize=address,undefined
1818

19+
- name: Setup meson build folder (Clang)
20+
run: CXX=clang++-19 CXX_LD=lld-19 meson setup build-clang -D test=true -D b_sanitize=address,undefined -D cpp_args='-pipe -stdlib=libc++ -static-libasan' -D cpp_link_args='-stdlib=libc++ -static-libasan'
21+
1922
- name: Compile code (GCC)
2023
run: cd build && meson compile
2124

25+
- name: Compile code (Clang)
26+
run: cd build-clang && meson compile
27+
2228
- name: Test code (GCC)
2329
run: cd build && meson test
30+
31+
- name: Test code (Clang)
32+
run: cd build-clang && meson test

test/src/meson.build

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ boost_ut_inc = boost_ut_proj.include_directories('ut')
99

1010
testing_include_dir = include_directories('../include/')
1111

12-
zecalculator_testing_lib = library('zecalculator_testing',
12+
zecalculator_testing_lib = static_library('zecalculator_testing',
1313
sources,
1414
include_directories : [testing_include_dir, boost_ut_inc],
1515
dependencies: zecalculator_dep,
16-
version : meson.project_version(),
17-
soversion : meson.project_version(),
1816
install : not meson.is_subproject()
1917
)
2018

0 commit comments

Comments
 (0)