Skip to content

Commit 569f795

Browse files
committed
add macos and win build_conduit testing
1 parent da9575e commit 569f795

2 files changed

Lines changed: 91 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: build_conduit_macos
2+
3+
on:
4+
pull_request:
5+
branches: [ develop ]
6+
7+
jobs:
8+
build_basic:
9+
name: macOS Clang
10+
runs-on: macos-latest
11+
env:
12+
CC: clang
13+
CXX: clang++
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
17+
with:
18+
submodules: 'recursive'
19+
- name: Build TPLs
20+
run: |
21+
env enable_mpi=OFF \
22+
enable_tests=OFF \
23+
enable_verbose=OFF \
24+
build_conduit=false \
25+
build_jobs=2 \
26+
./scripts/build_conduit/build_conduit.sh
27+
- name: Configure Conduit
28+
run: |
29+
cmake --version
30+
echo "**** Configuring Conduit"
31+
cmake -S src -B build -C conduit-config.cmake -DCMAKE_INSTALL_PREFIX=install
32+
- name: Build Conduit
33+
run: |
34+
echo "**** Building Conduit"
35+
cmake --build build -j2
36+
- name: Install Conduit
37+
run: |
38+
echo "**** Installing Conduit"
39+
cmake --install build
40+
- name: Check Install
41+
run: |
42+
echo "**** Checking Conduit using-with-cmake example"
43+
cd install/examples/conduit/using-with-cmake
44+
cmake -S . -B build
45+
cmake --build build --verbose -j2
46+
./build/conduit_example
47+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: build_conduit_windows
2+
3+
on:
4+
pull_request:
5+
branches: [ develop ]
6+
7+
jobs:
8+
build_windows_msvc_base:
9+
name: MSVC Base Release
10+
runs-on: windows-2025
11+
steps:
12+
- name: Setup MPI
13+
uses: mpi4py/setup-mpi@8ac56ec7ab12f2dffdcf55ffaf50f1920ebcc004 # v1
14+
- name: Setup Python Env
15+
run: python3 -m pip install --upgrade pip numpy mpi4py wheel setuptools
16+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
17+
with:
18+
submodules: 'recursive'
19+
- name: Build TPLs
20+
run: |
21+
env build_conduit=false `
22+
enable_tests=OFF `
23+
./scripts/build_conduit/build_conduit.sh
24+
- name: Configure Conduit
25+
run: |
26+
cmake --version
27+
echo "**** Configuring Conduit"
28+
cmake -S src -B build `
29+
-C conduit-config.cmake `
30+
-DENABLE_TESTS=ON `
31+
-DCMAKE_INSTALL_PREFIX=install
32+
- name: Build Conduit
33+
run: |
34+
echo "**** Building Conduit"
35+
cmake --build build --config Release -j2
36+
- name: Install Conduit
37+
run: |
38+
echo "**** Installing Conduit"
39+
cmake --install build --config Release
40+
- name: Run Conduit Unit Tests
41+
run: |
42+
echo "**** Conduit Unit Tests"
43+
cmake -E env CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --config Release --target RUN_TESTS
44+

0 commit comments

Comments
 (0)