Skip to content

Commit b3a72e6

Browse files
authored
Update cmake-multi-platform.yml
1 parent 512ea9c commit b3a72e6

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

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

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,35 @@ concurrency:
1616
jobs:
1717
arch-build-and-test:
1818
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
2121

2222
steps:
23-
# --- Install tool-chain **before** checkout so Git is available --------
2423
- name: Install basic tool-chain with pacman
2524
shell: bash
2625
run: |
2726
pacman -Sy --noconfirm archlinux-keyring
2827
pacman -Syu --noconfirm --needed \
2928
git base-devel clang cmake ninja
3029
31-
# --- Now we can safely clone, incl. sub-modules ------------------------
3230
- name: Checkout repository (with sub-modules)
3331
uses: actions/checkout@v4
3432
with:
3533
submodules: recursive
3634

37-
# --- Configure via CMake preset ---------------------------------------
3835
- name: Configure (cmake --preset)
3936
shell: bash
4037
run: cmake --preset linux-release -DOMATH_BUILD_TESTS=ON
4138

42-
# --- Build ------------------------------------------------------------
4339
- name: Build
4440
shell: bash
4541
run: cmake --build cmake-build/build/linux-release
4642

47-
# --- Test -------------------------------------------------------------
48-
- name: Test
43+
# --- Run tests --------------------------------------------------------
44+
- name: Run unit_tests
4945
shell: bash
50-
working-directory: cmake-build/build/linux-release
51-
run: ctest --output-on-failure
46+
run: ./out/Release/unit_tests
47+
5248

5349

5450
##############################################################################
@@ -75,10 +71,10 @@ jobs:
7571
shell: bash
7672
run: cmake --build cmake-build/build/darwin-release
7773

78-
- name: Test
74+
- name: Run unit_tests
7975
shell: bash
80-
working-directory: cmake-build/build/darwin-release
81-
run: ctest --output-on-failure
76+
run: ./out/Release/unit_tests
77+
8278

8379

8480
##############################################################################
@@ -108,7 +104,6 @@ jobs:
108104
shell: bash
109105
run: cmake --build cmake-build/build/windows-release
110106

111-
- name: Test
107+
- name: Run unit_tests.exe
112108
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

Comments
 (0)