Skip to content

Commit

Permalink
[CI] Don't compile the Python interfaces on some platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Feb 7, 2024
1 parent d62c566 commit 728b208
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ jobs:
BLAS_PATH=""
LAPACK_PATH=""
PYTHON_INTERFACE="true"
SHARED_STATIC="shared"
if [[ "${{matrix.compiler}}" == "nvidia-hpc" ]]; then
CSTD="none"
CPPSTD="none"
Expand All @@ -171,18 +172,25 @@ jobs:
BLAS_PATH="$DEPS/deps/$LIBDIR"
LAPACK_PATH="$DEPS/deps/$LIBDIR"
fi
if [[ ( "${{matrix.compiler}}" == "intel-classic" && "${{matrix.os}}" == "windows-latest" ) || ( "${{matrix.compiler}}" == "intel" && "${{matrix.os}}" == "windows-latest" ) ]]; then
SHARED_STATIC="static"
fi
if [[ ( "${{matrix.compiler}}" == "intel-classic" && "${{matrix.os}}" == "windows-latest" ) || ( "${{matrix.compiler}}" == "intel" && "${{matrix.os}}" == "windows-latest" ) || ( "${{matrix.compiler}}" == "intel-classic" && "${{matrix.os}}" == "macos-latest" ) ]]; then
PYTHON_INTERFACE="false"
fi
if [[ "${{matrix.compiler}}" == "nvidia-hpc" || "${{matrix.compiler}}" == "intel-classic" || ( "${{matrix.compiler}}" == "intel" && "${{matrix.os}}" == "windows-latest" ) ]]; then
SSIDS="false"
fi
meson setup builddir --buildtype=debug \
meson setup builddir -Ddefault_library=${SHARED_STATIC} \
--buildtype=debug \
--prefix=$GITHUB_WORKSPACE/galahad \
-Dc_std=$CSTD \
-Dcpp_std=$CPPSTD \
-Dexamples=true \
-Dtests=true \
-Dssids=$SSIDS \
-Dpythoniface=true \
-Dpythoniface=${PYTHON_INTERFACE} \
-Dgalahad_int64=$INT64 \
-Dlibblas_path=${BLAS_PATH} \
-Dliblapack_path=${LAPACK_PATH} \
Expand Down
11 changes: 8 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,14 @@ if build_tests

if not (name == 'croti_single')
test(name,
executable(name, file, fortran_args : args_precision, link_with : libgalahad_precision, dependencies : deps_tests,
link_language : 'fortran', include_directories: include_tests, install : true,
install_dir : fortran_tests_folder),
executable(name, file,
fortran_args : pp_flag + args_precision,
link_with : libgalahad_precision,
dependencies : deps_tests,
link_language : 'fortran',
include_directories: include_tests,
install : true,
install_dir : fortran_tests_folder),
suite : [package, precision, 'fortran'],
is_parallel : false)
endif
Expand Down

0 comments on commit 728b208

Please sign in to comment.