1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 19:41:51 +00:00

Free disk space before creating images

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-10-13 19:50:17 +02:00
parent 2413fcfda5
commit 2ed8a50bc9

View file

@ -27,6 +27,7 @@ jobs:
sudo apt-get install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler
- name: Free disk space
run: |
df -h
sudo swapoff -a >/dev/null 2>&1 || true
sudo rm -f /swapfile >/dev/null 2>&1 || true
sudo apt-get autoremove -y >/dev/null 2>&1 || true
@ -66,6 +67,13 @@ jobs:
OMR_TARGET: ${{ matrix.OMR_TARGET }}
run: |
make IGNORE_ERRORS=m -C $OMR_TARGET/source package/{compile,install,index} -j$(nproc) || make IGNORE_ERRORS=m -C $OMR_TARGET/source package/{compile,install,index} -j1 V=s
- name: Free disk space
working-directory: ../../omr
run: |
df -h
rm -rf toolchain
rm -rf dl
df -h
- name: Build image
working-directory: ../../omr
env: