From 09f463dfb9932cb8332e3b259a2190c2cfc66884 Mon Sep 17 00:00:00 2001 From: Laurent Huberdeau Date: Thu, 29 Aug 2024 11:16:36 -0400 Subject: [PATCH] Add bootstrap-bash-2_05a CI check --- .github/workflows/main.yml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aafc2d0b..f3cc8029 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -98,7 +98,38 @@ jobs: - name: Bootstrap pnut-exe with ${{ matrix.target }} backend on ${{ matrix.shell }} run: | set -e - ./bootstrap-pnut-exe.sh --backend ${{ matrix.target }} --shell ${{ matrix.shell }} --fast + ./bootstrap-pnut-exe.sh --backend ${{ matrix.target }} --shell ${{ matrix.shell }} --fast + + bootstrap-bash-2_05a: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup woody environment + run: | + sudo apt-get update + sudo apt-get install -y debootstrap # debootstrap allows us to create a minimal Debian environment + tar -czf ../pnut.tar.gz . # Make a copy of the pnut repo (excluding the woody directory) + sudo debootstrap --arch=i386 woody woody http://archive.debian.org/debian + mkdir woody/pnut + tar -xvzf ../pnut.tar.gz -C woody/pnut # Copy the pnut repo into the woody environment + + set -e + sudo chroot woody /bin/bash -c "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential" # Install gcc + + - name: Bootstrap pnut.sh with bash 2.05a + run: | + sudo chroot woody /bin/bash -c "cd /pnut && PNUT_OPTIONS='-DRT_FREE_UNSETS_VARS_NOT' ./bootstrap-pnut.sh --shell bash --fast" + + - name: Bootstrap pnut-exe with bash 2.05a + run: | + sudo chroot woody /bin/bash -c "cd /pnut && PNUT_OPTIONS='-DRT_FREE_UNSETS_VARS_NOT' ./bootstrap-pnut-exe.sh --backend i386_linux --fast" + sudo chroot woody /bin/bash -c "cd /pnut && ./bootstrap-pnut-exe.sh --backend i386_linux --shell bash --fast" + + - name: Run tests with bash 2.05a + run: | + sudo chroot woody /bin/bash -c "cd pnut && PNUT_OPTIONS='-DRT_FREE_UNSETS_VARS_NOT' ./run-tests.sh sh --shell bash" success-message: runs-on: ubuntu-latest