Update pyproject.toml #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test Ubuntu Build" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
pyexp: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
cc: [gcc] | |
name: "Test pyEXP Build" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out main EXP repo | |
uses: actions/checkout@v4 | |
with: | |
repository: EXP-code/EXP | |
path: exp | |
ref: main | |
- name: Install core dependencies - ubuntu | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential libeigen3-dev libfftw3-dev libhdf5-dev libopenmpi-dev | |
sudo pip install numpy | |
- name: Setup submodule and build | |
working-directory: exp | |
run: | | |
git submodule update --init --recursive | |
mkdir -p build/install | |
- name: Compile pyEXP - Linux | |
if: runner.os == 'Linux' | |
env: | |
CC: ${{ matrix.cc }} | |
working-directory: exp/build | |
run: >- | |
cmake | |
-DENABLE_NBODY=NO | |
-DENABLE_PYEXP=YES | |
-DCMAKE_BUILD_TYPE=Release | |
-DEigen3_DIR=/usr/include/eigen3/share/eigen3/cmake | |
-DCMAKE_INSTALL_PREFIX=./install | |
-Wno-dev | |
.. | |
- name: Make | |
working-directory: exp/build | |
run: make -j 2 |