Make docker command fail if bash command fails. (#15564)

Add `set -e` so that failing bash commands will cause the containing docker command to fail.
This commit is contained in:
Edward Chen 2023-04-20 13:38:58 -07:00 committed by GitHub
parent 46210556f0
commit 4b74cb1741
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,6 +90,7 @@ jobs:
-e ORT_BUILD_WITH_CACHE=1 \
onnxruntimecpubuild \
/bin/bash -c "
set -e -x;
/onnxruntime_src/tools/ci_build/github/linux/ort_minimal/build_full_ort_and_create_ort_files.sh /build/1; \
ccache -sv; \
ccache -z;"