From 690326d6acedf2a413f030b9d7c43676fc3ec527 Mon Sep 17 00:00:00 2001 From: Jordan Carlin Date: Wed, 17 Jul 2024 21:34:55 -0700 Subject: [PATCH] Update shell --- .github/cli-space-cleanup.sh | 3 +- .github/workflows/install.yml | 4 ++- .github/workflows/test.yml | 64 +++++------------------------------ 3 files changed, 13 insertions(+), 58 deletions(-) diff --git a/.github/cli-space-cleanup.sh b/.github/cli-space-cleanup.sh index 27fb300d8..0f8de1619 100755 --- a/.github/cli-space-cleanup.sh +++ b/.github/cli-space-cleanup.sh @@ -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 diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 0dd453b13..ec7a0cf34 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -1,6 +1,8 @@ name: Installation - on: [workflow_dispatch] +defaults: + run: + shell: bash jobs: ubuntu_install: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1343c6700..18f9cb34c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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