mirror of
https://github.com/johndoe6345789/tla_visualiser.git
synced 2026-04-24 13:45:03 +00:00
Handle missing Qt in workflow simulation
This commit is contained in:
@@ -112,16 +112,23 @@ run_build_job() {
|
||||
|
||||
# Install dependencies (basic check)
|
||||
echo "Checking build dependencies..."
|
||||
|
||||
|
||||
if ! command -v cmake &> /dev/null; then
|
||||
print_error "CMake not found"
|
||||
BUILD_RESULT="failed"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
||||
if ! command -v conan &> /dev/null; then
|
||||
print_warning "Conan not found - attempting to continue"
|
||||
fi
|
||||
|
||||
echo "Checking for Qt6..."
|
||||
if ! cmake --find-package -DNAME=Qt6 -DCOMPILER_ID=GNU -DLANGUAGE=CXX -DMODE=EXIST >/dev/null 2>&1; then
|
||||
print_warning "Qt6 not found - skipping build. Install Qt6 to enable building."
|
||||
BUILD_RESULT="skipped"
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Configure and build
|
||||
echo "Configuring build..."
|
||||
@@ -182,9 +189,13 @@ run_test_job() {
|
||||
TEST_RESULT="skipped"
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
||||
# Check if build passed
|
||||
if [ "$BUILD_RESULT" != "success" ]; then
|
||||
if [ "$BUILD_RESULT" == "skipped" ]; then
|
||||
print_warning "Tests skipped because build was skipped"
|
||||
TEST_RESULT="skipped"
|
||||
return 0
|
||||
elif [ "$BUILD_RESULT" != "success" ]; then
|
||||
print_error "Cannot test: Build job did not pass"
|
||||
TEST_RESULT="failed"
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user