From c66073ef7882b316103a8d3375aab08636ad9c2b Mon Sep 17 00:00:00 2001 From: "Mateusz \"Serafin\" Gajewski" Date: Tue, 10 Oct 2023 09:41:36 +0200 Subject: [PATCH] Remove and replace old cleanup-node script --- .github/bin/cleanup-node.sh | 14 -------------- .github/workflows/ci.yml | 5 +---- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100755 .github/bin/cleanup-node.sh diff --git a/.github/bin/cleanup-node.sh b/.github/bin/cleanup-node.sh deleted file mode 100755 index 7abce200d961..000000000000 --- a/.github/bin/cleanup-node.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -set -euxo pipefail - -echo "Space before cleanup" -df -h - -echo "Removing redundant directories" -sudo rm -rf /opt/hostedtoolcache/go -sudo rm -rf /usr/local/lib/android -sudo rm -rf /usr/share/dotnet - -echo "Space after cleanup" -df -h diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54406cb7c4cd..d78115930b6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -642,10 +642,7 @@ jobs: with: cache: restore java-version: ${{ matrix.jdk != '' && matrix.jdk || '17' }} - - name: Cleanup node - # This is required as a virtual environment update 20210219.1 left too little space for MemSQL to work - if: matrix.modules == 'plugin/trino-singlestore' - run: .github/bin/cleanup-node.sh + cleanup-node: ${{ format('{0}', matrix.modules == 'plugin/trino-singlestore') }} - name: Maven Install run: | export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}"