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} \
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} \
0 commit comments