replace github release actions with the gh tool in bash (#4746)

* replace github release actions with the gh tool in bash

* set macos 10.15 qt version to 6.2 LTS
This commit is contained in:
ebbit1q 2023-02-10 09:33:48 +01:00 committed by GitHub
parent ef38a8bb2b
commit 787c8d740b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 39 deletions

View file

@ -127,7 +127,7 @@ fi
# Add cmake --build flags
buildflags=(--config "$BUILDTYPE")
if [[ $PARALLEL_COUNT ]]; then
if [[ $(cmake --build /not_a_dir --parallel |& head -1) =~ parallel ]]; then
if [[ $(cmake --build /not_a_dir --parallel 2>&1 | head -1) =~ parallel ]]; then
# workaround for bionic having an old cmake
echo "this version of cmake does not support --parallel, using native build tool -j instead"
buildflags+=(-- -j "$PARALLEL_COUNT")
@ -171,7 +171,7 @@ fi
if [[ $MAKE_TEST ]]; then
echo "::group::Run tests"
ctest -C "$BUILDTYPE"
ctest -C "$BUILDTYPE" --output-on-failure
echo "::endgroup::"
fi