CI: feed tuttest snippets to bash in function

Signed-off-by: Karol Gugala <kgugala@antmicro.com>
This commit is contained in:
Karol Gugala 2021-01-19 18:15:00 +01:00
parent e215e3f95b
commit 4b4eba12f6
2 changed files with 3 additions and 4 deletions

View File

@ -17,5 +17,5 @@
# SPDX-License-Identifier: Apache-2.0
function tuttest_exec() {
tuttest "$@"
tuttest "$@" | bash -ex -
}

View File

@ -47,7 +47,6 @@ jobs:
env:
LANG: "en_US.UTF-8"
DEBIAN_FRONTEND: "noninteractive"
BASH_CMD: "bash -ex -"
container: ${{matrix.os}}:${{matrix.os-version}}
@ -69,10 +68,10 @@ jobs:
chmod a+rx /usr/bin/tuttest
- name: Install SymbiFlow toolchain
run: bash .github/scripts/install-toolchain.sh ${{matrix.fpga-fam}} ${{matrix.os}} | ${BASH_CMD}
run: bash .github/scripts/install-toolchain.sh ${{matrix.fpga-fam}} ${{matrix.os}}
- name: Build examples
run: bash .github/scripts/build-examples.sh ${{matrix.fpga-fam}} ${{matrix.example}} | ${BASH_CMD}
run: bash .github/scripts/build-examples.sh ${{matrix.fpga-fam}} ${{matrix.example}}
- uses: actions/upload-artifact@v2
with: