Skip to content

Commit cbd99ce

Browse files
Merge pull request #79 from EXP-code/devel
Bug fixes and GitHub action improvement
2 parents 90c2338 + 7a0e463 commit cbd99ce

32 files changed

+910
-308
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Test Builds"
1+
name: "Build and Test"
22

33
on:
44
push:
@@ -7,12 +7,13 @@ on:
77
pull_request:
88
branches:
99
- main
10+
- devel
1011
jobs:
11-
pyexp:
12+
exp:
1213
strategy:
1314
matrix:
1415
os: [ubuntu-latest]
15-
cc: [gcc, mpicc]
16+
cc: [gcc]
1617

1718
name: "Test pyEXP Build"
1819
runs-on: ${{ matrix.os }}
@@ -25,20 +26,21 @@ jobs:
2526
run: |
2627
sudo apt-get update
2728
sudo apt-get install -y build-essential libeigen3-dev libfftw3-dev libhdf5-dev libopenmpi-dev
29+
sudo pip install numpy
2830
2931
- name: Setup submodule and build
3032
run: |
3133
git submodule update --init --recursive
3234
mkdir -p build/install
3335
34-
- name: Compile pyEXP
36+
- name: Compile EXP
3537
if: runner.os == 'Linux'
3638
env:
3739
CC: ${{ matrix.cc }}
3840
working-directory: ./build
3941
run: >-
4042
cmake
41-
-DENABLE_NBODY=NO
43+
-DENABLE_NBODY=YES
4244
-DENABLE_PYEXP=YES
4345
-DCMAKE_BUILD_TYPE=Release
4446
-DEigen3_DIR=/usr/include/eigen3/share/eigen3/cmake
@@ -48,48 +50,12 @@ jobs:
4850
4951
- name: Make
5052
working-directory: ./build
51-
run: make -j 2
52-
53-
# -----------------------------------------------------------------------------------
54-
55-
exp:
56-
strategy:
57-
matrix:
58-
os: [ubuntu-latest]
59-
cc: [gcc, mpicc]
60-
61-
name: "Test Full EXP Build"
62-
runs-on: ${{ matrix.os }}
63-
steps:
64-
- name: Checkout
65-
uses: actions/checkout@v3
66-
67-
- name: Install core dependencies - ubuntu
68-
if: runner.os == 'Linux'
69-
run: |
70-
sudo apt-get update
71-
sudo apt-get install -y build-essential libeigen3-dev libfftw3-dev libhdf5-dev libopenmpi-dev
72-
73-
- name: Setup submodule and build
74-
run: |
75-
git submodule update --init --recursive
76-
mkdir -p build/install
77-
78-
- name: Compile Full EXP - Linux
79-
if: runner.os == 'Linux'
80-
env:
81-
CC: ${{ matrix.cc }}
82-
working-directory: ./build
83-
run: >-
84-
cmake
85-
-DENABLE_NBODY=YES
86-
-DENABLE_PYEXP=NO
87-
-DCMAKE_BUILD_TYPE=Release
88-
-DEigen3_DIR=/usr/include/eigen3/share/eigen3/cmake
89-
-DCMAKE_INSTALL_PREFIX=./install
90-
-Wno-dev
91-
..
53+
run: make -j 4
9254

93-
- name: Make
55+
- name: CTest Quick
9456
working-directory: ./build
95-
run: make -j 2
57+
run: ctest -L quick
58+
59+
#- name: CTest Long
60+
#working-directory: ./build
61+
#run: ctest -L long

.github/workflows/buildfull.yml

Lines changed: 0 additions & 146 deletions
This file was deleted.

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.21) # Needed for CUDA, MPI, and CTest features
22

33
project(
44
EXP
5-
VERSION "7.7.30"
5+
VERSION "7.7.99"
66
HOMEPAGE_URL https://github.com/EXP-code/EXP
77
LANGUAGES C CXX Fortran)
88

@@ -228,7 +228,8 @@ add_subdirectory(extern/pybind11)
228228
# Set options for the HighFive git submodule in extern
229229
set(HIGHFIVE_EXAMPLES OFF CACHE BOOL "Do not build the examples")
230230
set(HIGHFIVE_BUILD_DOCS OFF CACHE BOOL "Do not build the documentation")
231-
set(HIGHFIVE_USE_BOOST OFF CACHE BOOL "Do not use Boost in HighFIve")
231+
set(HIGHFIVE_USE_BOOST OFF CACHE BOOL "Do not use Boost in HighFive")
232+
set(HIGHFIVE_UNIT_TESTS OFF CACHE BOOL "Turn off internal testing for HighFIve")
232233
set(H5_USE_EIGEN TRUE CACHE BOOL "Eigen3 support in HighFive")
233234

234235
add_subdirectory(extern/HighFive EXCLUDE_FROM_ALL)

0 commit comments

Comments
 (0)