Skip to content

Commit

Permalink
ci: add windows
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Dec 19, 2024
1 parent 1c0911d commit 8cee13d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions +msise00/private/cmake.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ function cmake(src_dir)
assert(system("cmake --version") == 0, 'CMake not found')

cmd = "cmake -B" + build_dir + " -S" + src_dir;
if ispc && isempty(getenv("CMAKE_GENERATOR"))
cmd = cmd + " -G MinGW Makefiles";
end

assert(system(cmd) == 0, 'error building with CMake')

cmd = "cmake --build " + build_dir;
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,22 @@ jobs:
- run: mypy

- run: pytest


msys2:
runs-on: windows-latest
timeout-minutes: 10

steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
mingw-w64-ucrt-x86_64-gcc-fortran
- name: Put MSYS2_MinGW64 on PATH
run: echo "${{ runner.temp }}/msys64/ucrt64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- uses: actions/checkout@v4

- run: pytest

0 comments on commit 8cee13d

Please sign in to comment.