test configure script with dash in CI
This commit is contained in:
committed by
Steffen Jaeckel
parent
a60d2ea19d
commit
96ece6fbdb
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
@@ -95,13 +95,18 @@ jobs:
|
|||||||
name: Check if release would work
|
name: Check if release would work
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: install dependencies
|
- name: install dependencies & bootstrap
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y libtool pkg-config libexpat1-dev
|
sudo apt install -y libtool pkg-config libexpat1-dev dash
|
||||||
- name: Setup the library
|
|
||||||
run: |
|
|
||||||
./bootstrap.sh
|
./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
|
./configure
|
||||||
- name: Try release & tests
|
- name: Try release & tests
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user