From ef5c99d9cdb2e23d85d2f5180623d85ff3e8934b Mon Sep 17 00:00:00 2001 From: CharlieM <31941002+CharlieMc0@users.noreply.github.com> Date: Wed, 26 Jul 2023 09:59:41 -0400 Subject: [PATCH] Added clean up step to jobs --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e66f95294..9a8f5d097c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -109,6 +109,13 @@ jobs: zetacored-ubuntu-* zetaclientd-ubuntu-* + - name: Clean Up Workspace + if: always() + run: | + echo "Cleaning up the workspace..." + echo "GITHUB_WORKSPACE:$GITHUB_WORKSPACE " + rm -rf $GITHUB_WORKSPACE/* + build-alpine-and-test: runs-on: ["ubuntu-latest"] timeout-minutes: 30 @@ -193,6 +200,13 @@ jobs: zetacored-alpine-* zetaclientd-alpine-* + - name: Clean Up Workspace + if: always() + run: | + echo "Cleaning up the workspace..." + docker stop $(docker ps -q) + rm -rf $GITHUB_WORKSPACE/* + smoke-test: runs-on: ["zeta-runners"] #runs-on: ubuntu-latest @@ -242,6 +256,13 @@ jobs: cd contrib/localnet/ docker compose down + - name: Clean Up Workspace + if: always() + run: | + echo "Cleaning up the workspace..." + echo "GITHUB_WORKSPACE:$GITHUB_WORKSPACE " + rm -rf $GITHUB_WORKSPACE/* + upload: runs-on: ["zeta-runners"] #runs-on: ubuntu-latest @@ -356,6 +377,13 @@ jobs: zetacored-ubuntu-20-amd64 zetaclientd-ubuntu-20-amd64 + - name: Clean Up Workspace + if: always() + run: | + echo "Cleaning up the workspace..." + echo "GITHUB_WORKSPACE:$GITHUB_WORKSPACE " + rm -rf $GITHUB_WORKSPACE/* + upgrade_path_testing: runs-on: ["buildjet-4vcpu-ubuntu-2204"] timeout-minutes: 60