Combine storage clean up steps

This commit is contained in:
Jordan Carlin 2024-10-14 23:51:23 -07:00
parent f01a410cd5
commit 53d4086947
No known key found for this signature in database

View File

@ -40,11 +40,6 @@ jobs:
image: ${{ matrix.image }} image: ${{ matrix.image }}
options: --privileged --mount type=bind,source=/,target=/host --pid=host --entrypoint /bin/bash options: --privileged --mount type=bind,source=/,target=/host --pid=host --entrypoint /bin/bash
steps: steps:
- name: Echo Variables
run: |
echo ${{ matrix.name }}
echo ${{ matrix.os }}
echo ${{ matrix.image }}
- name: Install Dependencies for Red Hat - name: Install Dependencies for Red Hat
if: ${{ matrix.image != null }} if: ${{ matrix.image != null }}
run: | run: |
@ -55,17 +50,14 @@ jobs:
run: | run: |
git config --global --add safe.directory '*' git config --global --add safe.directory '*'
git submodule update --init addins/riscv-arch-test addins/verilog-ethernet git submodule update --init addins/riscv-arch-test addins/verilog-ethernet
- name: Free Up Storage for Ubuntu - name: Free Up Storage
if: ${{ matrix.image == null }}
run: | run: |
df -h df -h
if [ -z ${{ matrix.image }} ]; then
./.github/cli-space-cleanup.sh ./.github/cli-space-cleanup.sh
df -h else
- 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)" nsenter -t 1 -m -u -n -i bash -c "$(cat .github/cli-space-cleanup.sh)"
fi
df -h df -h
- name: Install - name: Install
run: sudo ./bin/wally-tool-chain-install.sh --clean run: sudo ./bin/wally-tool-chain-install.sh --clean