From 96ece6fbdb189d83681f47fd5db2193108259539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20=E2=80=9CCyberTailor=E2=80=9D?= Date: Sun, 6 Nov 2022 08:57:09 +0500 Subject: [PATCH] test configure script with dash in CI --- .github/workflows/main.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 75c2609..7db02d5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -95,13 +95,18 @@ jobs: name: Check if release would work steps: - uses: actions/checkout@v2 - - name: install dependencies + - name: install dependencies & bootstrap run: | sudo apt update - sudo apt install -y libtool pkg-config libexpat1-dev - - name: Setup the library - run: | + sudo apt install -y libtool pkg-config libexpat1-dev dash ./bootstrap.sh + - name: Check if configure works with non-bash shells + # https://github.com/actions/runner/issues/241 requires us to use this following line... + shell: 'script --return --quiet --command "bash {0}"' + run: | + [ "`CONFIG_SHELL=/bin/dash ./configure 2>&1 1>/dev/null | tee /dev/tty | wc -l`" = "0" ] + - name: Re-run configure with the default shell + run: | ./configure - name: Try release & tests run: |