|
53 | 53 | DEP_DIR: ${{github.workspace}}/dependencies |
54 | 54 | # VS 2022 only supported by Boost.Build 1.78+ with changes to build files (e.g. in Boost.Thread) required that are introduced in Boost 1.66 |
55 | 55 | # Boost.Iostreams doesn't support VS 2022 until 1.69 |
56 | | - BOOST_VERSION: ${{ startsWith(matrix.generator, 'Visual Studio') && '1.69.0' || '1.56.0' }} |
| 56 | + BOOST_VERSION: ${{ startsWith(matrix.generator, 'Visual Studio') && '1.69.0' || '1.66.0' }} |
57 | 57 | steps: |
58 | 58 | - uses: actions/checkout@v4 |
59 | 59 | - name: Sanity check version |
@@ -83,11 +83,11 @@ jobs: |
83 | 83 | if: matrix.standalone == 'Boost' && steps.cache-boost.outputs.cache-hit != 'true' |
84 | 84 | working-directory: __buildBoost |
85 | 85 | run: | |
86 | | - git submodule update --init --jobs 3 tools/boostdep libs/filesystem tools/inspect libs/wave # Last 2 are required for pre-1.64 |
| 86 | + git submodule update --init --jobs 3 tools/boostdep libs/filesystem |
87 | 87 | if [[ $BOOST_VERSION < '1.73.0' ]]; then |
88 | 88 | (cd tools/boostdep && git fetch origin && git checkout boost-1.73.0 && git checkout boost-1.63.0 -- depinst/exceptions.txt) |
89 | 89 | fi |
90 | | - python tools/boostdep/depinst/depinst.py --include tools --exclude test --git_args '--jobs 3 --depth 1' wave # Should be filesystem, but works because that is a dependency of wave |
| 90 | + python tools/boostdep/depinst/depinst.py --include tools --exclude test --git_args '--jobs 3 --depth 1' filesystem |
91 | 91 | if [[ "${{matrix.generator}}" =~ "Visual Studio" ]]; then |
92 | 92 | toolset=msvc-14.3 |
93 | 93 | # Boost.Build doesn't support MSVC 2022 (14.3) until 1.78 |
|
97 | 97 | fi |
98 | 98 | else |
99 | 99 | toolset=gcc |
100 | | - [[ "${{matrix.os}}" =~ "windows" ]] && botstrap_toolset=mingw || botstrap_toolset=gcc |
101 | | - ./bootstrap.sh --with-toolset="$botstrap_toolset" --with-libraries=system,filesystem threading=multi || (cat bootstrap.log && false) |
102 | | - sed -i 's/mingw/gcc/' project-config.jam |
| 100 | + ./bootstrap.sh --with-toolset=$toolset --with-libraries=system,filesystem threading=multi || (cat bootstrap.log && false) |
103 | 101 | ./b2 headers |
104 | 102 | fi |
105 | 103 | echo "B2_TOOLSET=$toolset" >> $GITHUB_ENV |
@@ -147,7 +145,8 @@ jobs: |
147 | 145 | extraFlags="-DBoost_DEBUG=ON -DBoost_NO_BOOST_CMAKE=ON -DCMAKE_INSTALL_PREFIX=$HOME/local" |
148 | 146 | if ! [[ "${{matrix.generator}}" =~ "Visual Studio" ]]; then |
149 | 147 | # Enable warning to find missing defines, especially important for the standalone version |
150 | | - extraFlags="$extraFlags -DCMAKE_CXX_FLAGS=-Wundef" |
| 148 | + extraFlags+=" -DCMAKE_CXX_FLAGS=-Wundef" |
| 149 | + extraFlags+=" -DBoost_ARCHITECTURE=-x64" # ABI tag for MinGW |
151 | 150 | fi |
152 | 151 | cmake -DCMAKE_BUILD_TYPE=${{matrix.buildType}} -DBUILD_SHARED_LIBS=${{matrix.shared_lib}} -G "${{matrix.generator}}" $extraFlags .. |
153 | 152 | - name: Build |
|
0 commit comments