Update shell

This commit is contained in:
Jordan Carlin 2024-07-17 21:34:55 -07:00
parent 51cb850452
commit 690326d6ac
No known key found for this signature in database
3 changed files with 13 additions and 58 deletions

View File

@ -30,7 +30,7 @@
# Remove unnecessary packages
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 || true
sudo apt-get purge -y "$pack" || true
done
sudo apt-get autoremove -y || true
sudo apt-get clean || true
@ -58,7 +58,6 @@ sudo rm -rf /usr/lib/mono
sudo rm -rf /usr/lib/R
sudo rm -rf /usr/lib/postgresql
sudo rm -rf /usr/lib/heroku
sudo rm -rf /usr/lib/llvm*
sudo rm -rf /usr/lib/firefox
sudo rm -rf /opt/hostedtoolcache

View File

@ -1,6 +1,8 @@
name: Installation
on: [workflow_dispatch]
defaults:
run:
shell: bash
jobs:
ubuntu_install:

View File

@ -1,6 +1,8 @@
name: Test
on: [workflow_dispatch]
defaults:
run:
shell: bash
jobs:
ubuntu_install:
@ -12,58 +14,10 @@ jobs:
os: ["ubuntu-20.04", "ubuntu-22.04", "ubuntu-24.04"]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Free up storage
run: |
df -h
./.github/cli-space-cleanup.sh
df -h
- run: mkdir -p /opt/riscv
- run: sudo apt install -y python3 python3-pip python3-venv
- run: python3 -m venv /opt/riscv
# with:
# submodules: recursive
- run: |
source /opt/riscv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
- name: make tests
run: |
source setup.sh
source /opt/riscv/bin/activate
make || true
rhel_family_install:
name: Test on ${{ matrix.os }}
runs-on: ubuntu-latest
container:
image: ${{ matrix.os }}
options: --privileged --mount type=bind,source=/,target=/host --pid=host --entrypoint /bin/bash
strategy:
fail-fast: false
matrix:
os: ["rockylinux:8", "rockylinux:9", "almalinux:8", "almalinux:9"]
steps:
- name: Install dependencies
run: |
dnf install -y sudo git
dnf install curl -y --allowerasing || true
- uses: actions/checkout@v4
with:
submodules: recursive
- run: dnf install -y python3.12 python3-pip
- run: mkdir -p /opt/riscv
- run: python3.12 -m venv /opt/riscv
- run: |
source /opt/riscv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
- name: make tests
run: |
source setup.sh
source /opt/riscv/bin/activate
make || true
- name: regresssion
run: |
source setup.sh
regression-wally
df -h
./.github/cli-space-cleanup.sh
df -h
- run: sudo ./bin/wally-package-install.sh