Skip to content

Commit

Permalink
Add bootstrap-bash-2_05a CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenthuberdeau committed Aug 29, 2024
1 parent 133653e commit 09f463d
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09f463d

Please sign in to comment.