Skip to content

Commit 612b03a

Browse files
committed
fixed #13823 - release-windows.yml: build with Boost
1 parent d63529b commit 612b03a

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/release-windows.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
# see https://www.pcre.org/original/changelog.txt
2323
PCRE_VERSION: 8.45
2424
QT_VERSION: 6.10.0
25+
BOOST_MINOR_VERSION: 89
2526

2627
steps:
2728
- uses: actions/checkout@v4
@@ -46,6 +47,16 @@ jobs:
4647
copy pcre.h ..\externals || exit /b !errorlevel!
4748
copy Release\pcre.lib ..\externals\pcre64.lib || exit /b !errorlevel!
4849
50+
- name: Download Boost
51+
run: |
52+
curl -fsSL https://archives.boost.io/release/1.%BOOST_MINOR_VERSION%.0/source/boost_1_%BOOST_MINOR_VERSION%_0.7z -o boost.zip || exit /b !errorlevel!
53+
54+
- name: Install Boost
55+
run: |
56+
@echo on
57+
7z x boost.zip boost_1_%BOOST_MINOR_VERSION%_0/boost || exit /b !errorlevel!
58+
ren boost_1_%BOOST_MINOR_VERSION%_0 boost || exit /b !errorlevel!
59+
4960
# available modules: https://github.com/miurahr/aqtinstall/blob/master/docs/getting_started.rst#installing-modules
5061
# available tools: https://github.com/miurahr/aqtinstall/blob/master/docs/getting_started.rst#installing-tools
5162
- name: Install Qt ${{ env.QT_VERSION }}
@@ -62,7 +73,7 @@ jobs:
6273
run: |
6374
:: TODO: enable rules?
6475
:: specify Release build so matchcompiler is used
65-
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_ONLINE_HELP=On -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
76+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_ONLINE_HELP=On -DUSE_BOOST=ON -DBOOST_INCLUDEDIR=%GITHUB_WORKSPACE%\boost -DCMAKE_COMPILE_WARNING_AS_ERROR=On || exit /b !errorlevel!
6677
cmake --build build --target cppcheck-gui --config Release || exit /b !errorlevel!
6778
6879
# TODO: package PDBs

0 commit comments

Comments
 (0)