diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c9aa2a2673..9b1e99a1cb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -44,7 +44,9 @@ jobs: # Clean unnecessary files to save disk space - name: clean unnecessary files to save space run: | - docker rmi `docker images -q` + if [ "$(docker images -q)" ]; then + docker rmi $(docker images -q) + fi sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/sudo apt/sources.list.d sudo apt -y autoremove --purge sudo apt -y autoclean diff --git a/musl-toolchain/build.sh b/musl-toolchain/build.sh index b32314082b..1e114a9c5b 100755 --- a/musl-toolchain/build.sh +++ b/musl-toolchain/build.sh @@ -17,7 +17,7 @@ source preset.sh if [ ! -d "$HOME/x-tools" ] || [ ! -f "$PRESET_HASH_FILE" ] || [ "$(cat $PRESET_HASH_FILE)" != "$CURRENT_PRESET_HASH" ]; then # Install dependencies sudo apt-get update - sudo apt-get install -y autoconf automake libtool libtool-bin unzip help2man python3.10-dev gperf bison flex texinfo gawk libncurses5-dev + sudo apt-get install -y autoconf automake libtool libtool-bin unzip help2man python3-dev gperf bison flex texinfo gawk libncurses5-dev # Clone crosstool-ng git clone https://github.com/crosstool-ng/crosstool-ng