Update test.yml

This commit is contained in:
Jordan Carlin 2024-07-16 23:51:29 -07:00
parent a384f22554
commit 72e1125c63
No known key found for this signature in database

View File

@ -59,22 +59,17 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ${{ matrix.os }} image: ${{ matrix.os }}
options: --privileged --mount type=bind,source=/,target=/host options: --privileged --mount type=bind,source=/,target=/host --pid=host
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: ["rockylinux:8", "almalinux:8", "rockylinux:9", "almalinux:9"] os: ["rockylinux:8", "almalinux:8", "rockylinux:9", "almalinux:9"]
steps: steps:
- uses: actions/checkout@v4
- run: df -h - run: df -h
- name: remove packages - name: remove packages
run: | run: |
removePacks=( '^llvm-.*' 'php.*' '^mongodb-.*' '^mysql-.*' '^dotnet-sdk-.*' 'azure-cli' 'google-cloud-cli' 'google-chrome-stable' 'firefox' 'powershell*' 'microsoft-edge-stable' 'mono-devel' ) nsenter -t 1 -m -u -n -i bash .github/cli-space-cleanup.sh
for pack in "${removePacks[@]}"; do
echo "REMOVING ${pack}"
sudo apt-get purge -y $pack || true
done
sudo apt-get autoremove -y
sudo apt-get clean
- run: df -h - run: df -h
- name: check packages - name: check packages
run: dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -nr run: dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -nr