Skip to content

Commit 72f7a85

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

1 file changed

Lines changed: 34 additions & 4 deletions

File tree

.github/workflows/find_component.yml

Lines changed: 34 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,23 @@ 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 -DCMAKE_INSTALL_PREFIX=~/.local -DCOMPONENT=${{matrix.library}} -B __build__
130145

131146
- name: Run test
132147
working-directory: ../boost-root
@@ -213,6 +228,11 @@ jobs:
213228
steps:
214229
- uses: actions/checkout@v6
215230

231+
- name: Install packages
232+
run: |
233+
sudo apt-get update
234+
sudo apt-get -y install libbz2-dev libopenmpi-dev libpython3-dev
235+
216236
- name: Setup Boost
217237
run: |
218238
REF=${GITHUB_BASE_REF:-$GITHUB_REF}
@@ -223,13 +243,23 @@ jobs:
223243
cd ..
224244
git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
225245
cd boost-root
226-
git submodule update --init --jobs 3
246+
git submodule update --init --jobs 3 tools/boostdep libs/assert libs/config libs/core libs/${{matrix.library}}
247+
python tools/boostdep/depinst/depinst.py -X test -g "--jobs 3" ${{matrix.library}}
227248
rm -rf tools/boost_install/*
228249
cp -r $GITHUB_WORKSPACE/* tools/boost_install
250+
./bootstrap.sh
251+
./b2 -d0 headers
252+
253+
- name: Install Boost
254+
run: |
255+
cd ../boost-root
256+
echo "using python ;" >> ~/user-config.jam
257+
echo "using mpi ;" >> ~/user-config.jam
258+
./b2 -j3 --prefix=$HOME/.local install
229259
230260
- name: Configure ${{matrix.library}}
231261
working-directory: ../boost-root
232-
run: cmake -DCOMPONENT=${{matrix.library}} -B __build__
262+
run: cmake -DCMAKE_INSTALL_PREFIX=~/.local -DCOMPONENT=${{matrix.library}} -B __build__
233263

234264
- name: Run test
235265
working-directory: ../boost-root

0 commit comments

Comments
 (0)