From 53d40869478fb2fbbb12c6dc854d9a0dc290b014 Mon Sep 17 00:00:00 2001 From: Jordan Carlin Date: Mon, 14 Oct 2024 23:51:23 -0700 Subject: [PATCH] Combine storage clean up steps --- .github/workflows/install.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index a149c9750..0956ef23b 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -40,11 +40,6 @@ jobs: image: ${{ matrix.image }} options: --privileged --mount type=bind,source=/,target=/host --pid=host --entrypoint /bin/bash steps: - - name: Echo Variables - run: | - echo ${{ matrix.name }} - echo ${{ matrix.os }} - echo ${{ matrix.image }} - name: Install Dependencies for Red Hat if: ${{ matrix.image != null }} run: | @@ -55,17 +50,14 @@ jobs: run: | git config --global --add safe.directory '*' git submodule update --init addins/riscv-arch-test addins/verilog-ethernet - - name: Free Up Storage for Ubuntu - if: ${{ matrix.image == null }} + - name: Free Up Storage run: | df -h - ./.github/cli-space-cleanup.sh - df -h - - name: Free Up Storage for Red Hat - if: ${{ matrix.image != null }} - run: | - df -h - nsenter -t 1 -m -u -n -i bash -c "$(cat .github/cli-space-cleanup.sh)" + if [ -z ${{ matrix.image }} ]; then + ./.github/cli-space-cleanup.sh + else + nsenter -t 1 -m -u -n -i bash -c "$(cat .github/cli-space-cleanup.sh)" + fi df -h - name: Install run: sudo ./bin/wally-tool-chain-install.sh --clean