@@ -251,17 +251,77 @@ jobs:
251
251
fail-fast : false
252
252
matrix :
253
253
b2_toolset : [
254
- msvc-14.3,
255
- msvc-15,
256
- msvc-16,
254
+ msvc-14.3
257
255
]
258
256
259
257
include :
260
258
- b2_toolset : msvc-14.3
261
259
b2_cxxstd : 14,17,2a
262
- - b2_toolset : msvc-15
263
- b2_cxxstd : 14,17,2a
264
- - b2_toolset : msvc-16
260
+
261
+ steps :
262
+ - name : Set up environment
263
+ id : setenv
264
+ shell : pwsh
265
+ run : |
266
+ if ("$env:GITHUB_REF" -contains "master") {
267
+ echo "BOOST_BRANCH=master" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
268
+ } else {
269
+ echo "BOOST_BRANCH=develop" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
270
+ }
271
+ echo "BOOST_SELF=$((Get-Item $env:GITHUB_WORKSPACE).BaseName)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
272
+ echo "BOOST_ROOT=$env:GITHUB_WORKSPACE\boost-root" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
273
+ echo "boost_self=$((Get-Item $env:GITHUB_WORKSPACE).BaseName)" | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append
274
+ echo "boost_root=$env:GITHUB_WORKSPACE\boost-root" | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append
275
+
276
+ - name : Clone boostorg/boost
277
+ shell : pwsh
278
+ run : |
279
+ git clone -b $env:BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git $env:BOOST_ROOT
280
+ cd $env:BOOST_ROOT
281
+ git submodule update -q --init libs/headers
282
+ git submodule update -q --init tools/boost_install
283
+ git submodule update -q --init tools/boostdep
284
+ git submodule update -q --init tools/build
285
+ New-Item -Path libs\$env:BOOST_SELF -ItemType Directory -ErrorAction SilentlyContinue
286
+
287
+ - uses : actions/checkout@v2
288
+ with :
289
+ path : ${{ steps.setenv.outputs.boost_root }}/libs/${{ steps.setenv.outputs.boost_self }}
290
+
291
+ - name : Run tools/boostdep/depinst/depinst.py
292
+ shell : pwsh
293
+ run : |
294
+ cd $env:BOOST_ROOT
295
+ python tools/boostdep/depinst/depinst.py --include benchmark --include example --include examples --include tools $env:BOOST_SELF
296
+
297
+ - name : Bootstrap boostorg/boost
298
+ shell : pwsh
299
+ run : |
300
+ cd $env:BOOST_ROOT
301
+ .\bootstrap.bat --with-toolset=msvc
302
+ .\b2 headers
303
+ .\b2 -v
304
+
305
+ - name : Build libs/geometry/test//minimal
306
+ shell : pwsh
307
+ run : |
308
+ cd $env:BOOST_ROOT
309
+ .\b2 toolset=${{ matrix.b2_toolset }} cxxstd=${{ matrix.b2_cxxstd }} variant=debug,release address-model=32,64 libs/geometry/test//minimal
310
+
311
+ # #############################################################################
312
+ msvc2 :
313
+ name : ${{ matrix.b2_toolset }}
314
+ runs-on : windows-2019
315
+
316
+ strategy :
317
+ fail-fast : false
318
+ matrix :
319
+ b2_toolset : [
320
+ msvc-14.2
321
+ ]
322
+
323
+ include :
324
+ - b2_toolset : msvc-14.2
265
325
b2_cxxstd : 14,17,2a
266
326
267
327
steps :
0 commit comments