Skip to content

Commit 320a688

Browse files
committed
Revert back boost windows install until choco replies
1 parent 8bdfc08 commit 320a688

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/windows.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
name: Windows Build
23

34
on: [push]
@@ -7,6 +8,9 @@ env:
78
BUILD_TYPE: Release
89
REPO_DIR : ${{github.workspace}}
910
BUILD_DIR: ${{github.workspace}}/bin/builddir
11+
BOOST_TOOLSET: "msvc"
12+
BOOST_VERSION: "1.83.0"
13+
BOOST_PLATFORM_VERSION: "2022"
1014

1115
jobs:
1216
build:
@@ -25,9 +29,26 @@ jobs:
2529
echo "GITHUB_SHORT_REV=$(git rev-parse --short HEAD)" >> $env:GITHUB_ENV
2630
echo "ARCHIVE_FILENAME=${{ github.event.repository.name }}-$(git rev-parse --short HEAD).zip" >> $env:GITHUB_ENV
2731
cmake -E make_directory ${{ env.BUILD_DIR }}
28-
choco install boost-msvc-14.3
2932
33+
# install dependencies
34+
- name: Install Boost
35+
uses: MarkusJx/install-boost@v2.5.1
36+
id: install-boost
37+
with:
38+
# REQUIRED: Specify the required boost version
39+
# A list of supported versions can be found here:
40+
# https://github.com/MarkusJx/prebuilt-boost/blob/main/versions-manifest.json
41+
boost_version: ${{env.BOOST_VERSION}}
42+
# OPTIONAL: Specify a platform version
43+
platform_version: ${{env.BOOST_PLATFORM_VERSION}}
44+
# OPTIONAL: Specify a toolset
45+
toolset: ${{env.BOOST_TOOLSET}}
46+
# NOTE: If a boost version matching all requirements cannot be found,
47+
# this build step will fail
48+
3049
- name: Configure
50+
env:
51+
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
3152
run: cmake -B ${{env.BUILD_DIR}} -S ${{env.REPO_DIR}}
3253

3354
- name: Build

0 commit comments

Comments
 (0)