mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-23 13:04:28 +00:00
Update install test with space saver
This commit is contained in:
parent
db2cfa88ca
commit
f5dac34fb7
90
.github/workflows/install.yml
vendored
90
.github/workflows/install.yml
vendored
@ -9,30 +9,44 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: ["ubuntu-20.04", "ubuntu-22.04"]
|
||||
os: ["ubuntu-20.04", "ubuntu-22.04", "ubuntu-24.04"]
|
||||
steps:
|
||||
- name: Free up storage
|
||||
run: |
|
||||
sudo rm -rf /usr/local/lib/android &> /dev/null
|
||||
sudo rm -rf /usr/share/dotnet &> /dev/null
|
||||
sudo rm -rf /opt/ghc &> /dev/null
|
||||
sudo rm -rf /opt/hostedtoolcache/CodeQL &> /dev/null
|
||||
sudo docker image prune --all --force &> /dev/null
|
||||
sudo apt-get purge -y \
|
||||
'^llvm-.*' \
|
||||
'php.*' \
|
||||
'^mongodb-.*' \
|
||||
'^mysql-.*' \
|
||||
azure-cli \
|
||||
google-cloud-cli \
|
||||
google-chrome-stable \
|
||||
firefox \
|
||||
powershell \
|
||||
microsoft-edge-stable \
|
||||
mono-devel \
|
||||
&> /dev/null
|
||||
df -h
|
||||
removePacks=( '^llvm-.*' 'php.*' '^mongodb-.*' '^mysql-.*' '^dotnet-sdk-.*' 'azure-cli' 'google-cloud-cli' 'google-chrome-stable' 'firefox' '^powershell*' 'microsoft-edge-stable' 'mono-devel' 'hhvm' )
|
||||
for pack in "${removePacks[@]}"; do
|
||||
sudo apt-get purge -y $pack &> /dev/null || true
|
||||
done
|
||||
sudo apt-get autoremove -y &> /dev/null
|
||||
sudo apt-get clean &> /dev/null
|
||||
|
||||
sudo rm -rf /usr/local/lib/android &> /dev/null
|
||||
sudo rm -rf /usr/share/dotnet &> /dev/null
|
||||
sudo rm -rf /usr/share/swift &> /dev/null
|
||||
sudo rm -rf /usr/share/miniconda &> /dev/null
|
||||
sudo rm -rf /usr/share/az* &> /dev/null
|
||||
sudo rm -rf /usr/share/gradle-* &> /dev/null
|
||||
sudo rm -rf /usr/share/sbt &> /dev/null
|
||||
sudo rm -rf /opt/ghc &> /dev/null
|
||||
sudo rm -rf /usr/local/.ghcup &> /dev/null
|
||||
sudo rm -rf /usr/local/share/powershell &> /dev/null
|
||||
sudo rm -rf /usr/local/lib/node_modules &> /dev/null
|
||||
sudo rm -rf /usr/local/julia* &> /dev/null
|
||||
sudo rm -rf /usr/local/share/chromium &> /dev/null
|
||||
sudo rm -rf /usr/local/share/vcpkg &> /dev/null
|
||||
sudo rm -rf /usr/local/games &> /dev/null
|
||||
sudo rm -rf /usr/local/sqlpackage &> /dev/null
|
||||
sudo rm -rf /usr/lib/google-cloud-sdk &> /dev/null
|
||||
sudo rm -rf /usr/lib/jvm &> /dev/null
|
||||
sudo rm -rf /usr/lib/mono &> /dev/null
|
||||
sudo rm -rf /usr/lib/R &> /dev/null
|
||||
sudo rm -rf /usr/lib/postgresql &> /dev/null
|
||||
sudo rm -rf /usr/lib/heroku &> /dev/null
|
||||
sudo rm -rf /usr/lib/llvm* &> /dev/null
|
||||
sudo rm -rf /usr/lib/firefox &> /dev/null
|
||||
sudo rm -rf /opt/hostedtoolcache &> /dev/null
|
||||
sudo docker image prune --all --force &> /dev/null
|
||||
df -h
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@ -45,6 +59,7 @@ jobs:
|
||||
run: make
|
||||
- name: regresssion
|
||||
run: regression-wally
|
||||
|
||||
rhel_family_install:
|
||||
name: Test installation on ${{ matrix.os }}
|
||||
runs-on: ubuntu-latest
|
||||
@ -54,25 +69,48 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: ["rockylinux:8", "almalinux:8"]
|
||||
os: ["rockylinux:8", "rockylinux:9", "almalinux:8", "almalinux:9"]
|
||||
steps:
|
||||
- run: dnf install -y sudo git
|
||||
- name: free up storage
|
||||
run: |
|
||||
df -h
|
||||
sudo rm -rf /host/usr/local/lib/android
|
||||
sudo rm -rf /host/usr/local/lib/android &> /dev/null
|
||||
sudo rm -rf /host/usr/share/dotnet &> /dev/null
|
||||
sudo rm -rf /host/usr/share/swift &> /dev/null
|
||||
sudo rm -rf /host/usr/share/miniconda &> /dev/null
|
||||
sudo rm -rf /host/usr/share/az* &> /dev/null
|
||||
sudo rm -rf /host/usr/share/gradle-* &> /dev/null
|
||||
sudo rm -rf /host/usr/share/sbt &> /dev/null
|
||||
sudo rm -rf /host/opt/ghc &> /dev/null
|
||||
sudo rm -rf /host/opt/hostedtoolcache/CodeQL &> /dev/null
|
||||
sudo rm -rf /host/usr/local/.ghcup &> /dev/null
|
||||
sudo rm -rf /host/usr/local/share/powershell &> /dev/null
|
||||
sudo rm -rf /host/usr/local/lib/node_modules &> /dev/null
|
||||
sudo rm -rf /host/usr/local/julia* &> /dev/null
|
||||
sudo rm -rf /host/usr/local/share/chromium &> /dev/null
|
||||
sudo rm -rf /host/usr/local/share/vcpkg &> /dev/null
|
||||
sudo rm -rf /host/usr/local/games &> /dev/null
|
||||
sudo rm -rf /host/usr/local/sqlpackage &> /dev/null
|
||||
sudo rm -rf /host/usr/lib/google-cloud-sdk &> /dev/null
|
||||
sudo rm -rf /host/usr/lib/jvm &> /dev/null
|
||||
sudo rm -rf /host/usr/lib/mono &> /dev/null
|
||||
sudo rm -rf /host/usr/lib/R &> /dev/null
|
||||
sudo rm -rf /host/usr/lib/postgresql &> /dev/null
|
||||
sudo rm -rf /host/usr/lib/heroku &> /dev/null
|
||||
sudo rm -rf /host/usr/lib/llvm* &> /dev/null
|
||||
sudo rm -rf /host/usr/lib/firefox &> /dev/null
|
||||
sudo rm -rf /host/opt/hostedtoolcache &> /dev/null
|
||||
df -h
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: install
|
||||
run: ./bin/wally-tool-chain-install.sh
|
||||
- name: setup
|
||||
run: source setup.sh
|
||||
- name: make tests
|
||||
run: make
|
||||
run: |
|
||||
source setup.sh
|
||||
make
|
||||
- name: regresssion
|
||||
run: regression-wally
|
||||
run: |
|
||||
source setup.sh
|
||||
regression-wally
|
||||
|
Loading…
Reference in New Issue
Block a user