@@ -190,6 +190,11 @@ jobs:
190190 matrix :
191191 include :
192192 - config : address-model=64
193+ msys2_pkg : mingw-w64-x86_64
194+ msystem : MINGW64
195+ - config : address-model=32
196+ msys2_pkg : mingw-w64-i686
197+ msystem : MINGW32
193198
194199 steps :
195200 - name : checkout
@@ -215,9 +220,10 @@ jobs:
215220 with :
216221 release : false
217222 update : true
223+ msystem : ${{ matrix.msystem }}
218224 install : >-
219- mingw-w64-x86_64 -gcc
220- mingw-w64-x86_64 -openssl
225+ ${{ matrix.msys2_pkg }} -gcc
226+ ${{ matrix.msys2_pkg }} -openssl
221227
222228 - name : tests (deterministic)
223229 shell : msys2 {0}
@@ -226,4 +232,45 @@ jobs:
226232 export PATH="$BOOST_ROOT:$PATH"
227233 export PYTHON_INTERPRETER=python
228234 cd test
229- b2 toolset=gcc crypto=openssl-shared link=static asserts=on release target-os=windows -l400 warnings=all warnings-as-errors=on ${{ matrix.config }} cxxflags=-Wno-error=array-bounds cxxflags=-Wno-error=stringop-overflow cxxflags=-Wno-error=clobbered deterministic-tests testing.execute=off --hash
235+ b2 toolset=gcc crypto=openssl-shared link=static asserts=on release target-os=windows -l400 warnings=all warnings-as-errors=on ${{ matrix.config }} cxxflags=-Wno-error=array-bounds cxxflags=-Wno-error=stringop-overflow cxxflags=-Wno-error=clobbered deterministic-tests --hash
236+
237+ cmake :
238+ name : cmake
239+ runs-on : windows-2022
240+ continue-on-error : true
241+
242+ steps :
243+ - name : checkout
244+ uses : actions/checkout@v6
245+ with :
246+ submodules : recursive
247+ fetch-depth : 1
248+ filter : tree:0
249+
250+ - name : install boost
251+ run : |
252+ git clone --depth=1 --recurse-submodules -j10 --branch=boost-1.90.0 https://github.com/boostorg/boost.git
253+ cd boost
254+ bootstrap.bat
255+
256+ - name : stage boost libraries
257+ run : |
258+ cd boost
259+ b2 cxxstd=17 release --with-system --layout=system address-model=64 link=shared stage
260+
261+ - name : cmake configure
262+ run : |
263+ set BOOST_ROOT=%CD%\boost
264+ cmake -B build -DBOOST_ROOT=%BOOST_ROOT% -DBOOST_LIBRARYDIR=%BOOST_ROOT%\stage\lib -DCMAKE_CXX_STANDARD=17 -Dbuild_tests=ON -Dbuild_examples=ON -Dbuild_tools=ON -Dwebtorrent=on -DOPENSSL_ROOT_DIR="C:\Program Files\OpenSSL" -Dskip-python-runtime-test=true -G "Visual Studio 17 2022" -A x64
265+
266+ - name : cmake build
267+ run : cmake --build build --config Debug --parallel %NUMBER_OF_PROCESSORS%
268+
269+ - name : ctest
270+ uses : nick-fields/retry@v3
271+ with :
272+ max_attempts : 3
273+ timeout_minutes : 120
274+ command : |
275+ cd build
276+ ctest --build-config Debug --parallel $env:NUMBER_OF_PROCESSORS --output-on-failure
0 commit comments