Skip to content

Commit

Permalink
add windows 20222 tests back
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotan committed Jan 8, 2025
1 parent 2a85825 commit e25820d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/cmake-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
apt-get install -y --no-install-recommends ssh
- name: Install and configure conan
run: |
pip install --upgrade conan==2.0.2
pip install --upgrade conan
CONAN_ARGS="--profile .github/workflows/conan/profiles/${{ matrix.profile }} \
-o with_boost=${H5CPP_WITH_BOOST} \
-o with_mpi=${H5CPP_WITH_MPI} \
Expand Down Expand Up @@ -104,6 +104,7 @@ jobs:
"stdfs"
]
runs-on: windows-2019
if: false
steps:
- uses: actions/checkout@v2
- name: Add MSVC to PATH
Expand All @@ -116,7 +117,7 @@ jobs:
- name: Install and configure conan
run: |
python -m pip install --upgrade pip
pip install --upgrade conan==2.0.2
pip install --upgrade conan
CONAN_ARGS="--profile .github/workflows/conan/profiles/vs2019 \
-o with_boost=${H5CPP_WITH_BOOST} \
-o shared=${H5CPP_SHARED} \
Expand Down Expand Up @@ -187,7 +188,7 @@ jobs:
- name: Install and configure conan
run: |
python -m pip install --upgrade pip
pip install --upgrade conan==2.0.2
pip install --upgrade conan
CONAN_ARGS="--profile .github/workflows/conan/profiles/vs2022 \
-o with_boost=${H5CPP_WITH_BOOST} \
-o shared=${H5CPP_SHARED} \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conan/profiles/vs2022
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
arch=x86_64
build_type=Release
compiler=msvc
compiler.version=193
compiler.version=194
compiler.runtime=dynamic
os=Windows

[conf]
tools.env.virtualenv:powershell=True
tools.env.virtualenv:powershell=pwsh
16 changes: 9 additions & 7 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ class H5CppConan(ConanFile):

def build_requirements(self):
self.build_requires("catch2/3.3.2")
self.build_requires("ninja/1.10.2")
self.build_requires("zlib/1.2.13")
self.build_requires("ninja/1.12.1")
self.build_requires("zlib/1.3.1")
if self.settings.os == "Windows":
self.tool_requires("b2/5.2.1")

def config_options(self):
if self.settings.os == "Windows":
Expand All @@ -38,19 +40,19 @@ def configure(self):
self.options["hdf5"].parallel = True

def requirements(self):
self.requires("hdf5/1.14.0")
self.requires("hdf5/1.14.5")
self.requires("catch2/3.3.2")
self.requires("zlib/1.2.13")
self.requires("zlib/1.3.1")
self.requires("szip/2.1.1")
self.requires("bzip2/1.0.8")

if self.options.get_safe("with_boost", False):
if self.settings.os == "Windows":
self.requires("boost/1.81.0")
self.requires("boost/1.86.0")
elif self.settings.os == "Macos":
self.requires("boost/1.81.0")
self.requires("boost/1.86.0")
else:
self.requires("boost/1.81.0")
self.requires("boost/1.86.0")
if self.options.get_safe("with_mpi", False):
self.requires("openmpi/4.1.0")

Expand Down

0 comments on commit e25820d

Please sign in to comment.