Skip to content

Commit f8d7bd0

Browse files
committed
Update find_component.yml
1 parent 466fb36 commit f8d7bd0

1 file changed

Lines changed: 42 additions & 4 deletions

File tree

.github/workflows/find_component.yml

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ jobs:
110110
steps:
111111
- uses: actions/checkout@v6
112112

113+
- name: Install packages
114+
run: |
115+
sudo apt-get update
116+
sudo apt-get -y install libbz2-dev libopenmpi-dev libpython3-dev
117+
113118
- name: Setup Boost
114119
run: |
115120
REF=${GITHUB_BASE_REF:-$GITHUB_REF}
@@ -120,13 +125,27 @@ jobs:
120125
cd ..
121126
git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
122127
cd boost-root
123-
git submodule update --init --jobs 3
128+
git submodule update --init --jobs 3 tools/boostdep libs/assert libs/config libs/core libs/${{matrix.library}}
129+
python tools/boostdep/depinst/depinst.py -X test -g "--jobs 3" ${{matrix.library}}
124130
rm -rf tools/boost_install/*
125131
cp -r $GITHUB_WORKSPACE/* tools/boost_install
132+
./bootstrap.sh
133+
./b2 -d0 headers
134+
135+
- name: Install Boost
136+
run: |
137+
cd ../boost-root
138+
echo "using python ;" >> ~/user-config.jam
139+
echo "using mpi ;" >> ~/user-config.jam
140+
./b2 -j3 --prefix=$HOME/.local install
126141
127142
- name: Configure ${{matrix.library}}
128143
working-directory: ../boost-root
129-
run: cmake -DCOMPONENT=${{matrix.library}} -B __build__
144+
run: cmake -S tools/boost_install/test/component -B __build__ -DCMAKE_INSTALL_PREFIX=~/.local -DBoost_DEBUG=ON -DCOMPONENT=${{matrix.library}}
145+
146+
- name: Build test
147+
working-directory: ../boost-root
148+
run: cmake --build __build__
130149

131150
- name: Run test
132151
working-directory: ../boost-root
@@ -213,6 +232,11 @@ jobs:
213232
steps:
214233
- uses: actions/checkout@v6
215234

235+
- name: Install packages
236+
run: |
237+
sudo apt-get update
238+
sudo apt-get -y install libbz2-dev libopenmpi-dev libpython3-dev
239+
216240
- name: Setup Boost
217241
run: |
218242
REF=${GITHUB_BASE_REF:-$GITHUB_REF}
@@ -223,13 +247,27 @@ jobs:
223247
cd ..
224248
git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
225249
cd boost-root
226-
git submodule update --init --jobs 3
250+
git submodule update --init --jobs 3 tools/boostdep libs/assert libs/config libs/core libs/${{matrix.library}}
251+
python tools/boostdep/depinst/depinst.py -X test -g "--jobs 3" ${{matrix.library}}
227252
rm -rf tools/boost_install/*
228253
cp -r $GITHUB_WORKSPACE/* tools/boost_install
254+
./bootstrap.sh
255+
./b2 -d0 headers
256+
257+
- name: Install Boost
258+
run: |
259+
cd ../boost-root
260+
echo "using python ;" >> ~/user-config.jam
261+
echo "using mpi ;" >> ~/user-config.jam
262+
./b2 -j3 --prefix=$HOME/.local install
229263
230264
- name: Configure ${{matrix.library}}
231265
working-directory: ../boost-root
232-
run: cmake -DCOMPONENT=${{matrix.library}} -B __build__
266+
run: cmake -S tools/boost_install/test/component -B __build__ -DCMAKE_INSTALL_PREFIX=~/.local -DBoost_DEBUG=ON -DCOMPONENT=${{matrix.library}}
267+
268+
- name: Build test
269+
working-directory: ../boost-root
270+
run: cmake --build __build__
233271

234272
- name: Run test
235273
working-directory: ../boost-root

0 commit comments

Comments
 (0)