Skip to content

Commit 481be76

Browse files
authored
Issue 663: add windows 2022 tests back (#664)
* add windows 20222 tests back * uncomment windows 2022 * remove windows 2019 tests
1 parent 2a85825 commit 481be76

File tree

3 files changed

+13
-82
lines changed

3 files changed

+13
-82
lines changed

.github/workflows/cmake-build.yml

Lines changed: 2 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
apt-get install -y --no-install-recommends ssh
4848
- name: Install and configure conan
4949
run: |
50-
pip install --upgrade conan==2.0.2
50+
pip install --upgrade conan
5151
CONAN_ARGS="--profile .github/workflows/conan/profiles/${{ matrix.profile }} \
5252
-o with_boost=${H5CPP_WITH_BOOST} \
5353
-o with_mpi=${H5CPP_WITH_MPI} \
@@ -92,78 +92,7 @@ jobs:
9292
run: |
9393
cd build
9494
ctest --extra-verbose --no-tests=error
95-
windows-2019:
96-
strategy:
97-
matrix:
98-
shared: [
99-
"shared",
100-
"static"
101-
]
102-
boost: [
103-
"boost",
104-
"stdfs"
105-
]
106-
runs-on: windows-2019
107-
steps:
108-
- uses: actions/checkout@v2
109-
- name: Add MSVC to PATH
110-
uses: ilammy/msvc-dev-cmd@v1
111-
- name: Set environment variables
112-
run: |
113-
bash .github/workflows/set_env_vars.sh \
114-
${{ matrix.shared }} \
115-
${{ matrix.boost }}
116-
- name: Install and configure conan
117-
run: |
118-
python -m pip install --upgrade pip
119-
pip install --upgrade conan==2.0.2
120-
CONAN_ARGS="--profile .github/workflows/conan/profiles/vs2019 \
121-
-o with_boost=${H5CPP_WITH_BOOST} \
122-
-o shared=${H5CPP_SHARED} \
123-
-o *:shared=${H5CPP_SHARED}"
124-
conan profile detect
125-
conan remove -c zlib/*
126-
conan lock create conanfile.py ${CONAN_ARGS} --lockfile-packages --lockfile-out base.lock
127-
conan lock create conanfile.py ${CONAN_ARGS} --build missing
128-
- name: cache conan dependencies
129-
uses: actions/cache@v2
130-
with:
131-
path: ~/.conan/data
132-
key: conan-vs2019-${{ hashfiles('base.lock') }}-${{ hashFiles('conan.lock') }}
133-
restore-keys: |
134-
conan-vs-2019-${{ hashfiles('base.lock') }}
135-
conan-vs-2019
136-
- name: install conan dependencies
137-
run: |
138-
CONAN_ARGS="--profile .github/workflows/conan/profiles/vs2019 \
139-
-o with_boost=${H5CPP_WITH_BOOST} \
140-
-o shared=${H5CPP_SHARED} \
141-
-o *:shared=${H5CPP_SHARED}"
142-
conan remove -c zlib/*
143-
conan install . ${CONAN_ARGS} \
144-
--output-folder build \
145-
--lockfile conan.lock \
146-
--build missing \
147-
--update \
148-
--generator VirtualRunEnv
149-
- name: build with cmake
150-
run: |
151-
CONAN_ARGS="--profile .github/workflows/conan/profiles/vs2019 \
152-
-o with_boost=${H5CPP_WITH_BOOST} \
153-
-o shared=${H5CPP_SHARED} \
154-
-o *:shared=${H5CPP_SHARED}"
155-
conan build . ${CONAN_ARGS} \
156-
--lockfile conan.lock \
157-
--output-folder build
158-
- name: run tests
159-
run: |
160-
cd build
161-
.\conanbuildenv-release-x86_64.ps1
162-
.\conanrunenv-release-x86_64.ps1
163-
ctest --extra-verbose --no-tests=error --output-on-failure
164-
shell: pwsh
16595
windows-2022:
166-
if: false
16796
strategy:
16897
matrix:
16998
shared: [
@@ -187,7 +116,7 @@ jobs:
187116
- name: Install and configure conan
188117
run: |
189118
python -m pip install --upgrade pip
190-
pip install --upgrade conan==2.0.2
119+
pip install --upgrade conan
191120
CONAN_ARGS="--profile .github/workflows/conan/profiles/vs2022 \
192121
-o with_boost=${H5CPP_WITH_BOOST} \
193122
-o shared=${H5CPP_SHARED} \

.github/workflows/conan/profiles/vs2022

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
arch=x86_64
33
build_type=Release
44
compiler=msvc
5-
compiler.version=193
5+
compiler.version=194
66
compiler.runtime=dynamic
77
os=Windows
88

99
[conf]
10-
tools.env.virtualenv:powershell=True
10+
tools.env.virtualenv:powershell=pwsh

conanfile.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ class H5CppConan(ConanFile):
2626

2727
def build_requirements(self):
2828
self.build_requires("catch2/3.3.2")
29-
self.build_requires("ninja/1.10.2")
30-
self.build_requires("zlib/1.2.13")
29+
self.build_requires("ninja/1.12.1")
30+
self.build_requires("zlib/1.3.1")
31+
if self.settings.os == "Windows":
32+
self.tool_requires("b2/5.2.1")
3133

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

4042
def requirements(self):
41-
self.requires("hdf5/1.14.0")
43+
self.requires("hdf5/1.14.5")
4244
self.requires("catch2/3.3.2")
43-
self.requires("zlib/1.2.13")
45+
self.requires("zlib/1.3.1")
4446
self.requires("szip/2.1.1")
4547
self.requires("bzip2/1.0.8")
4648

4749
if self.options.get_safe("with_boost", False):
4850
if self.settings.os == "Windows":
49-
self.requires("boost/1.81.0")
51+
self.requires("boost/1.86.0")
5052
elif self.settings.os == "Macos":
51-
self.requires("boost/1.81.0")
53+
self.requires("boost/1.86.0")
5254
else:
53-
self.requires("boost/1.81.0")
55+
self.requires("boost/1.86.0")
5456
if self.options.get_safe("with_mpi", False):
5557
self.requires("openmpi/4.1.0")
5658

0 commit comments

Comments
 (0)