Skip to content

Commit

Permalink
Update cis.
Browse files Browse the repository at this point in the history
  • Loading branch information
vehre committed Feb 11, 2025
1 parent e631d97 commit a8e1e17
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,27 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
mpi: [ 'mpich', 'openmpi', 'impi' ]

env:
FC: gfortran
GCC_V: 11
GCC_V: 13

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Dependencies
run: |
sudo apt install -y gfortran-${GCC_V} cmake mpich
sudo apt install -y gfortran-${GCC_V} cmake
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} 100
- name: Setup MPI: ${{ matrix.mpi }}
uses: mpi4py/setup-mpi@v1
with:
mpi: ${{ matrix.mpi }}

- name: Build and Test
run: |
mkdir build
Expand All @@ -30,3 +37,4 @@ jobs:
ctest --test-dir build --output-on-failure --schedule-random --repeat-until-fail 1 --timeout 200
cd build
make uninstall
echo "Ran with mpi: ${{ matrix.mpi }}"
16 changes: 14 additions & 2 deletions .github/workflows/win-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,23 @@ jobs:
ls "${I_MPI_ROOT}/bin"
ls "${I_MPI_ROOT}"
ls "${I_MPI_ROOT}/lib"
mpifc.bat -show
mpicc.bat -show
ls "${I_MPI_ROOT}/env"
# cat "${I_MPI_ROOT}/bin/mpifc.bat"
# mpifc.bat -show
# mpicc.bat -show
mpifc.bat -version || echo "ifort not installed"
mpicc.bat -version || echo "icc not installed"
set +o verbose
# echo The following environment variables are used:
# echo CMPLR_ROOT Intel^(R^) Compiler installation directory path
# echo I_MPI_ROOT Intel^(R^) MPI Library installation directory path
# echo I_MPI_{FC,F77,F90} or MPICH_{FC,F77,F90}
# echo the path/name of the underlying compiler to be used.
# echo I_MPI_{FC,F77,F90}_PROFILE or MPI{FC,F77,F90}_PROFILE
# echo name of profile file ^(without extension^)
# echo I_MPI_COMPILER_CONFIG_DIR
# echo folder which contains configuration files *.conf
# echo VT_ROOT Intel^(R^) Trace Collector installation directory path
- name: Build and Test
run: |
Expand Down
6 changes: 3 additions & 3 deletions cmake/uninstall.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ endforeach()
foreach(file ${files})
message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
exec_program(
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
execute_process(
COMMAND "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
OUTPUT_VARIABLE rm_out
RETURN_VALUE rm_retval
RESULT_VARIABLE rm_retval
)
if(NOT "${rm_retval}" STREQUAL 0)
message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}")
Expand Down

0 comments on commit a8e1e17

Please sign in to comment.