Skip to content

Commit

Permalink
Cache
Browse files Browse the repository at this point in the history
  • Loading branch information
sherpalabsio committed Nov 29, 2024
1 parent d579f30 commit 992a026
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,35 @@ jobs:

test-minimum-supported-versions:
name: Minimum Supported Versions Test
runs-on: ubuntu-20.04
strategy:
matrix:
os: [ubuntu-20.04]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Cache Bash dependencies
uses: actions/cache@v3
with:
path: /tmp/bash-4.3
key: bash-${{ runner.os }}-4.3
restore-keys: |
bash-${{ runner.os }}-
- name: Install Bash 4.3
run: |
sudo apt-get update
sudo apt-get install -y build-essential wget # Install necessary build tools
wget http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz
tar -xvzf bash-4.3.tar.gz
cd bash-4.3
./configure
make
sudo make install
if [ ! -d "/tmp/bash-4.3" ]; then
sudo apt-get update
sudo apt-get install -y build-essential wget # Install necessary build tools
wget http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz
tar -xvzf bash-4.3.tar.gz
cd bash-4.3
./configure
make
sudo make install
fi
echo "============================================"
bash --version # Verify the installed Bash version
Expand All @@ -122,4 +136,6 @@ jobs:
- name: Run the tests
run: |
bash --version
zsh --version
script make test

0 comments on commit 992a026

Please sign in to comment.