diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d2d70fd..195b5fd4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,16 +46,16 @@ jobs: pip install numpy mpi4py pip install petsc-dev petsc4py - - name: Set environment variables - run: | - echo "PETSC_DIR=/usr/local/petsc" >> $GITHUB_ENV - echo "PETSC_ARCH=arch-linux-c-opt" >> $GITHUB_ENV - - # - name: Configure and install Hypre + # - name: Get environment variables # run: | - # # Run ./configure --download-hypre in petsc folder - # cd /usr/local/petsc - # ./configure --download-hypre + # echo "PETSC_DIR=/usr/local/petsc" >> $GITHUB_ENV + # echo "PETSC_ARCH=arch-linux-c-opt" >> $GITHUB_ENV + + - name: Configure and install Hypre + run: | + # Change directory to petsc directory using python command os.environ["PETSC_DIR"] + python -c "import os; os.chdir(os.environ['PETSC_DIR'])" + ./configure --download-hypre # Installation of petsc in parallel