@@ -16,39 +16,35 @@ concurrency:
16
16
jobs :
17
17
arch-build-and-test :
18
18
name : Arch Linux (Clang)
19
- runs-on : ubuntu-latest # host runner
20
- container : archlinux:latest # actual build runs inside this container
19
+ runs-on : ubuntu-latest
20
+ container : archlinux:latest
21
21
22
22
steps :
23
- # --- Install tool-chain **before** checkout so Git is available --------
24
23
- name : Install basic tool-chain with pacman
25
24
shell : bash
26
25
run : |
27
26
pacman -Sy --noconfirm archlinux-keyring
28
27
pacman -Syu --noconfirm --needed \
29
28
git base-devel clang cmake ninja
30
29
31
- # --- Now we can safely clone, incl. sub-modules ------------------------
32
30
- name : Checkout repository (with sub-modules)
33
31
uses : actions/checkout@v4
34
32
with :
35
33
submodules : recursive
36
34
37
- # --- Configure via CMake preset ---------------------------------------
38
35
- name : Configure (cmake --preset)
39
36
shell : bash
40
37
run : cmake --preset linux-release -DOMATH_BUILD_TESTS=ON
41
38
42
- # --- Build ------------------------------------------------------------
43
39
- name : Build
44
40
shell : bash
45
41
run : cmake --build cmake-build/build/linux-release
46
42
47
- # --- Test ----- --------------------------------------------------------
48
- - name : Test
43
+ # --- Run tests --------------------------------------------------------
44
+ - name : Run unit_tests
49
45
shell : bash
50
- working-directory : cmake-build/build/linux-release
51
- run : ctest --output-on-failure
46
+ run : ./out/Release/unit_tests
47
+
52
48
53
49
54
50
# #############################################################################
@@ -75,10 +71,10 @@ jobs:
75
71
shell : bash
76
72
run : cmake --build cmake-build/build/darwin-release
77
73
78
- - name : Test
74
+ - name : Run unit_tests
79
75
shell : bash
80
- working-directory : cmake-build/build/darwin-release
81
- run : ctest --output-on-failure
76
+ run : ./out/Release/unit_tests
77
+
82
78
83
79
84
80
# #############################################################################
@@ -108,7 +104,6 @@ jobs:
108
104
shell : bash
109
105
run : cmake --build cmake-build/build/windows-release
110
106
111
- - name : Test
107
+ - name : Run unit_tests.exe
112
108
shell : bash
113
- working-directory : cmake-build/build/windows-release
114
- run : ctest --output-on-failure
109
+ run : ./out/Release/unit_tests.exe
0 commit comments