Skip to content

Commit a57eae0

Browse files
authored
XDB-460 quiet Boost logs and relocate build to mnt (#199)
1 parent 09a1df9 commit a57eae0

3 files changed

Lines changed: 22 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ jobs:
4141

4242
build:
4343
needs: [calc_ver]
44+
env:
45+
# There are not enough free 19 Gb mounted in "/" to build and create rpm and deb packages.
46+
# So, we use /mnt/bld which is mounted to a bigger space. In /mnt there is 66 Gb free space in github action server.
47+
BLD_DIR: /mnt/bld
48+
4449

4550
strategy:
4651
matrix:
@@ -63,32 +68,39 @@ jobs:
6368
6469
- name: Build
6570
run: |
66-
mkdir -p ${{github.workspace}}/bld
67-
chmod 777 ${{github.workspace}}/bld
71+
sudo mkdir -p ${{ env.BLD_DIR }}
72+
sudo chmod 777 ${{ env.BLD_DIR }}
73+
74+
echo "=== Disk space before build ==="
75+
df -h
76+
6877
podman run --rm \
6978
--name build \
7079
--mount=type=tmpfs,dst=/tmp \
7180
--mount=type=tmpfs,dst=/var/tmp \
7281
--security-opt label=disable \
7382
--mount=type=bind,src=${{github.workspace}},dst=/home/runner/src,readonly \
74-
--mount=type=bind,src=${{github.workspace}}/bld,dst=/home/runner/bld \
83+
--mount=type=bind,src=${{ env.BLD_DIR }},dst=/home/runner/bld \
7584
$use_image \
7685
/home/runner/src/build-scripts/for-${{ matrix.for }}/build-on-${{ matrix.build_on }}.bash \
7786
${{needs.calc_ver.outputs.project_ver}} \
7887
${{needs.calc_ver.outputs.build_ver}} \
7988
${{needs.calc_ver.outputs.release_flag}} \
8089
${{ matrix.parallel }}
8190
91+
echo "=== Disk space after building and creating packages ==="
92+
df -h
93+
8294
# - name: Minimal tests
83-
# working-directory: ${{github.workspace}}/bld
95+
# working-directory: ${{ env.BLD_DIR }}
8496
# shell: bash
8597
# run: ctest --output-on-failure -V
8698

8799
- name: Upload result
88100
uses: nanoufo/action-upload-artifacts-and-release-assets@v2
89101
with:
90102
path: |
91-
${{github.workspace}}/bld/linux/packages/*${{needs.calc_ver.outputs.full_ver}}*
103+
${{ env.BLD_DIR }}/linux/packages/*${{needs.calc_ver.outputs.full_ver}}*
92104
upload-release-files: ${{ needs.calc_ver.outputs.release_flag }}
93105
release-upload-url: ${{ needs.calc_ver.outputs.release_upload_url }}
94106
if-no-files-found: error

build-scripts/for-linux/build-on-linux.bash

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ echo "number of parallel jobs: [$PARALLEL_PRMS]"
6060

6161
ninja $PARALLEL_PRMS -k 0
6262

63+
echo "=== Disk space after build ==="
64+
df -h
65+
6366
cpack -G RPM
6467
for fn in packages/*.rpm; do echo "$fn:"; rpm -qpRv $fn; echo; done
6568

cmake/CompileBoost.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ function(compile_boost)
8686
--with-libraries=${BOOTSTRAP_LIBRARIES}
8787
--with-toolset=${BOOST_TOOLSET}
8888
BUILD_COMMAND ${B2_COMMAND}
89+
# Added -d0 flag to B2_COMMAND to suppress informational Boost build output
90+
-d0
8991
link=static ${B2_ADDTTIONAL_BUILD_ARGS}
9092
${COMPILE_BOOST_BUILD_ARGS}
9193
--prefix=${BOOST_INSTALL_DIR}

0 commit comments

Comments
 (0)