From f1bbb420f28d0793b4af5dc43ff7644bd928a29f Mon Sep 17 00:00:00 2001 From: takahiro-yamada Date: Fri, 18 Oct 2024 08:20:57 +0000 Subject: [PATCH] Add clean up process --- .github/workflows/main.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 94e2c90..ec00e8a 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -49,6 +49,34 @@ jobs: export SLACK_APP_TOKEN=${{ secrets.SLACK_APP_TOKEN }} export SLACK_BOT_TOKEN=${{ secrets.SLACK_BOT_TOKEN }} EOF + - name: Clean up unnecessary files + run: | + docker image prune -af + sudo rm -rf /opt/az || true + sudo rm -rf /opt/microsoft || true + sudo rm -rf /opt/pipx || true + sudo rm -rf /opt/google || true + sudo rm -rf /usr/share/dotnet || true + sudo rm -rf /usr/local/lib/android || true + sudo rm -rf /usr/local/share/boost || true + sudo rm -rf /usr/lib/jvm || true + sudo rm -rf /usr/share/swift || true + sudo rm -rf /usr/local/julia" || true + sudo rm -rf /usr/share/kotlinc || true + sudo rm -rf /usr/local/share/edge_driver || true + sudo rm -rf /usr/local/share/chromedriver-linux64 || true + sudo rm -rf /usr/local/share/gecko_driver || true + sudo rm -rf /usr/share/miniconda || true + sudo rm -rf /usr/local/share/phantomjs" || true + sudo rm -rf /usr/share/sbt || true + sudo rm -rf /usr/local/aws-cli || true + sudo rm -rf /usr/local/aws-sam-cli || true + sudo rm -rf /usr/local/sqlpackage || true + sudo rm -rf /usr/local/bin/minikube || true + sudo rm -rf /usr/local/bin/kustomize || true + sudo rm -rf /usr/local/bin/kubectl || true + sudo rm -rf /usr/local/bin/kind || true + sudo rm -rf /usr/local/bin/helm || true - run: make setup KINDTEST_K8S_VERSION=${{ matrix.k8s-version }} - run: make -C kindtest start KINDTEST_K8S_VERSION=${{ matrix.k8s-version }} - run: make -C kindtest test