Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add petsc4py to github build workflow #374

Merged
merged 3 commits into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,50 @@ jobs:
python-version: ${{ matrix.python-version}}
architecture: x64

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libhypre-dev libmumps-seq-dev
pip install numpy mpi4py
pip install petsc petsc4py

- name: Set environment variables
run: |
echo "PETSC_DIR=/usr/local/petsc" >> $GITHUB_ENV
echo "PETSC_ARCH=arch-linux-c-opt" >> $GITHUB_ENV

# Installation of petsc in parallel

# - name: Install dependencies
# run: |
# sudo apt-get update
# sudo apt-get install -y mpich
# pip install numpy mpi4py
# pip install petsc petsc4py

# - name: Set environment variables
# run: |
# echo "PETSC_DIR=/usr/local/petsc" >> $GITHUB_ENV
# echo "PETSC_ARCH=arch-linux-c-opt" >> $GITHUB_ENV

# - name: Install Hypre
# run: |
# git clone https://github.com/hypre-space/hypre.git
# cd hypre/src
# ./configure --with-MPI
# make
# sudo make install

# - name: Install MUMPS
# run: |
# git clone https://github.com/scivision/mumps.git
# cd mumps
# mkdir build
# cd build
# cmake -G "Ninja" -DMUMPS_parallel=on ..
# cmake --build .
# sudo make install

- name: Install DarSIA
run: pip install .[dev]

Expand Down
Loading