Skip to content

Commit 1b86113

Browse files
committed
adding the command for building pybind11 in the CI
1 parent fc77df1 commit 1b86113

2 files changed

Lines changed: 38 additions & 3 deletions

File tree

.github/workflows/master-test-workflow.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,26 @@ jobs:
4141
submodules: 'true'
4242

4343
- name: Build Pybind11
44-
run: cd extern/pybind11 && mkdir -p build && cd build && cmake .. && make check -j"$(nproc)" && mkdir -p mock_install/share/pkgconfig && echo -e "prefix=$(pwd)/..\nincludedir=\${prefix}/include\n\nName: pybind11\nDescription: Seamless operability between C++11 and Python\nVersion: 2.13.6\nCflags: -I\${includedir}" > mock_install/share/pkgconfig/pybind11.pc && echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(pwd)/mock_install/share/pkgconfig" >> $GITHUB_ENV
44+
run: |
45+
cd extern/pybind11
46+
mkdir -p build
47+
cd build
48+
cmake ..
49+
make check -j"$(nproc)"
50+
51+
mkdir -p mock_install/share/pkgconfig
52+
cat <<EOF > mock_install/share/pkgconfig/pybind11.pc
53+
prefix=$(pwd)/..
54+
includedir=\${prefix}/include
4555
56+
Name: pybind11
57+
Description: Seamless operability between C++11 and Python
58+
Version: 2.13.6
59+
Cflags: -I\${includedir}
60+
EOF
4661
62+
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(pwd)/mock_install/share/pkgconfig" >> $GITHUB_ENV
63+
4764
- name: Setup
4865
run: source /home/hicr/.bashrc && meson setup build -Dbuildtype=debug -Db_coverage=true -DdistributedEngine=mpi -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true -DexecutionStateType=nosv,boost -DprocessingUnitType=nosv,pthreads -DbuildPyTaskR=true
4966

.github/workflows/pr-development-workflow.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,26 @@ jobs:
271271
submodules: 'true'
272272

273273
- name: Build Pybind11
274-
run: cd extern/pybind11 && mkdir -p build && cd build && cmake .. && make check -j"$(nproc)" && mkdir -p mock_install/share/pkgconfig && echo -e "prefix=$(pwd)/..\nincludedir=\${prefix}/include\n\nName: pybind11\nDescription: Seamless operability between C++11 and Python\nVersion: 2.13.6\nCflags: -I\${includedir}" > mock_install/share/pkgconfig/pybind11.pc && echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(pwd)/mock_install/share/pkgconfig" >> $GITHUB_ENV
275-
274+
run: |
275+
cd extern/pybind11
276+
mkdir -p build
277+
cd build
278+
cmake ..
279+
make check -j"$(nproc)"
280+
281+
mkdir -p mock_install/share/pkgconfig
282+
cat <<EOF > mock_install/share/pkgconfig/pybind11.pc
283+
prefix=$(pwd)/..
284+
includedir=\${prefix}/include
285+
286+
Name: pybind11
287+
Description: Seamless operability between C++11 and Python
288+
Version: 2.13.6
289+
Cflags: -I\${includedir}
290+
EOF
291+
292+
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(pwd)/mock_install/share/pkgconfig" >> $GITHUB_ENV
293+
276294
- name: Setup
277295
run: source /home/hicr/.bashrc && meson setup build -Dbuildtype=debug -Db_coverage=true -DdistributedEngine=mpi -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true -DexecutionStateType=nosv,boost -DprocessingUnitType=nosv,pthreads -DbuildPyTaskR=true
278296

0 commit comments

Comments
 (0)