Skip to content

Commit d2e5137

Browse files
authored
[ci] Fix mscv versions (#1224)
1 parent fd6d0e7 commit d2e5137

File tree

1 file changed

+66
-6
lines changed

1 file changed

+66
-6
lines changed

.github/workflows/minimal.yml

Lines changed: 66 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,17 +251,77 @@ jobs:
251251
fail-fast: false
252252
matrix:
253253
b2_toolset: [
254-
msvc-14.3,
255-
msvc-15,
256-
msvc-16,
254+
msvc-14.3
257255
]
258256

259257
include:
260258
- b2_toolset: msvc-14.3
261259
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
265325
b2_cxxstd: 14,17,2a
266326

267327
steps:

0 commit comments

Comments
 (0)