Skip to content

Commit 4669cba

Browse files
authored
Update cmake-multi-platform.yml
1 parent f8c22b2 commit 4669cba

File tree

1 file changed

+4
-35
lines changed

1 file changed

+4
-35
lines changed

.github/workflows/cmake-multi-platform.yml

+4-35
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Omath CI (Arch Linux / macOS / Windows)
1+
name: Omath CI (Arch Linux / Windows)
22

33
on:
44
push:
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: Build
4141
shell: bash
42-
run: cmake --build cmake-build/build/linux-release
42+
run: cmake --build cmake-build/build/linux-release --target all
4343

4444
- name: Run unit_tests
4545
shell: bash
@@ -49,38 +49,7 @@ jobs:
4949

5050

5151
##############################################################################
52-
# 2) macOS – Clang / Ninja
53-
##############################################################################
54-
macos-build-and-test:
55-
name: macOS (Clang)
56-
runs-on: macos-latest
57-
58-
steps:
59-
- name: Checkout repository (with sub-modules)
60-
uses: actions/checkout@v4
61-
with:
62-
submodules: recursive
63-
64-
- name: Install Ninja
65-
uses: seanmiddleditch/gha-setup-ninja@v4
66-
67-
- name: Configure (cmake --preset)
68-
shell: bash
69-
run: cmake --preset darwin-release -DOMATH_BUILD_TESTS=ON
70-
71-
- name: Build
72-
shell: bash
73-
run: cmake --build cmake-build/build/darwin-release
74-
75-
- name: Run unit_tests
76-
shell: bash
77-
working-directory: cmake-build/build/darwin-release
78-
run: ./out/Release/unit_tests
79-
80-
81-
82-
##############################################################################
83-
# 3) Windows – MSVC / Ninja
52+
# 2) Windows – MSVC / Ninja
8453
##############################################################################
8554
windows-build-and-test:
8655
name: Windows (MSVC)
@@ -104,7 +73,7 @@ jobs:
10473

10574
- name: Build
10675
shell: bash
107-
run: cmake --build cmake-build/build/windows-release
76+
run: cmake --build cmake-build/build/windows-release --target all
10877

10978
- name: Run unit_tests.exe
11079
shell: bash

0 commit comments

Comments
 (0)