diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 302a8f1..d6dc4e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ "ubuntu-latest", "macos-latest", "macos-14" ] + os: [ "ubuntu-latest", "macos-latest", "macos-14", "windows-latest" ] python-version: [ "3.10", "3.11", "3.12", "3.13" ] steps: - name: checkout @@ -44,7 +44,7 @@ jobs: cd test/ci_tests python utests.py - name: check import - if: failure() + if: failure() && runner.os != 'Windows' run: | python -m pip show wrf-python python -m pip show --files wrf-python @@ -56,3 +56,9 @@ jobs: file ${installed_files} python -vvv -dd -c "import wrf" ldd $(echo ${installed_files} | grep -F -v -e ".py" -e ".dist-info") + - name: check import (Windows) + if: failure() && runner.os == 'Windows' + run: | + python -m pip show wrf-python + python -m pip show --files wrf-python + python -vvv -dd -c "import wrf" diff --git a/CMakeLists.txt b/CMakeLists.txt index 265c22c..bea3630 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,7 +74,8 @@ else() add_custom_command( OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/fortran/omp.f90" DEPENDS "${CMAKE_SOURCE_DIR}/fortran/ompgen.F90" - COMMAND ${CMAKE_Fortran_COMPILER} -E fortran/ompgen.F90 -o fortran/omp.f90 -cpp + COMMAND ${CMAKE_Fortran_COMPILER} -E "${CMAKE_SOURCE_DIR}/fortran/ompgen.F90" + -o "${CMAKE_CURRENT_BINARY_DIR}/fortran/omp.f90" -cpp ) endif()