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
0 commit comments