From 6f9b72a27f40aae030161bd469723ee16746c268 Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Tue, 26 Aug 2025 11:02:11 +0200 Subject: [PATCH 1/5] Add test workflow --- .github/workflows/test-macos-runner.yml | 61 +++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/test-macos-runner.yml diff --git a/.github/workflows/test-macos-runner.yml b/.github/workflows/test-macos-runner.yml new file mode 100644 index 00000000..7e065641 --- /dev/null +++ b/.github/workflows/test-macos-runner.yml @@ -0,0 +1,61 @@ +name: Test macOS Self-Hosted Runner + +on: + workflow_dispatch: + push: + branches: [ dev, master ] + +jobs: + test-runner: + runs-on: [self-hosted, macos15-vm] + timeout-minutes: 120 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: System information + run: | + echo "Runner information:" + uname -a + sw_vers + echo "CPU info:" + sysctl -n machdep.cpu.brand_string + echo "Memory info:" + system_profiler SPHardwareDataType | grep "Memory:" + echo "Disk space:" + df -h + + - name: Check development tools + run: | + echo "Xcode tools version:" + xcode-select -p + clang --version + echo "CMake version:" + cmake --version || echo "CMake not installed" + echo "Git version:" + git --version + echo "Available SDKs:" + xcodebuild -showsdks || echo "Xcode not fully installed" + + - name: Test basic compilation + run: | + echo "Testing basic C++ compilation:" + cat > test.cpp << 'EOF' + #include + int main() { + std::cout << "Hello from macOS 15 UTM runner!" << std::endl; + return 0; + } + EOF + clang++ -o test test.cpp + ./test + + - name: Check FairMQ dependencies + run: | + echo "Checking potential FairMQ build dependencies:" + brew --version || echo "Homebrew not installed" + pkg-config --version || echo "pkg-config not available" + echo "Looking for common HEP libraries..." + find /usr/local /opt -name "*root*" -type d 2>/dev/null | head -5 || echo "No ROOT installation found" + From e18140e1101bb60c6aaa3354e34ce35304200463 Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Tue, 26 Aug 2025 11:11:30 +0200 Subject: [PATCH 2/5] f --- .github/workflows/test-macos-runner.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-macos-runner.yml b/.github/workflows/test-macos-runner.yml index 7e065641..9a42cc52 100644 --- a/.github/workflows/test-macos-runner.yml +++ b/.github/workflows/test-macos-runner.yml @@ -7,7 +7,7 @@ on: jobs: test-runner: - runs-on: [self-hosted, macos15-vm] + runs-on: [self-hosted, macOS-15] timeout-minutes: 120 steps: From 75b1208af03cb37bf54cd5fec3b0037698e2561a Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Tue, 26 Aug 2025 11:12:28 +0200 Subject: [PATCH 3/5] f --- .github/workflows/test-macos-runner.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test-macos-runner.yml b/.github/workflows/test-macos-runner.yml index 9a42cc52..56cd6c21 100644 --- a/.github/workflows/test-macos-runner.yml +++ b/.github/workflows/test-macos-runner.yml @@ -4,6 +4,9 @@ on: workflow_dispatch: push: branches: [ dev, master ] + pull_request: + branches: [ dev, master ] + jobs: test-runner: From 4176376b213dd73649111fd15b23301788fab6db Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Tue, 26 Aug 2025 11:56:49 +0200 Subject: [PATCH 4/5] f --- .github/workflows/test-macos-runner.yml | 47 ++++++++++++++++++++----- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test-macos-runner.yml b/.github/workflows/test-macos-runner.yml index 56cd6c21..8c573c8b 100644 --- a/.github/workflows/test-macos-runner.yml +++ b/.github/workflows/test-macos-runner.yml @@ -12,11 +12,17 @@ jobs: test-runner: runs-on: [self-hosted, macOS-15] timeout-minutes: 120 - + steps: + - name: Setup environment + run: | + echo "Setting up PATH for Homebrew..." + export PATH="/opt/homebrew/bin:/usr/local/bin:$PATH" + echo "PATH=$PATH" >> $GITHUB_ENV + - name: Checkout code uses: actions/checkout@v4 - + - name: System information run: | echo "Runner information:" @@ -28,7 +34,7 @@ jobs: system_profiler SPHardwareDataType | grep "Memory:" echo "Disk space:" df -h - + - name: Check development tools run: | echo "Xcode tools version:" @@ -40,20 +46,43 @@ jobs: git --version echo "Available SDKs:" xcodebuild -showsdks || echo "Xcode not fully installed" - + - name: Test basic compilation run: | - echo "Testing basic C++ compilation:" + echo "Current working directory:" + pwd + ls -la + echo "Testing compilation in current directory:" + + # Create test file cat > test.cpp << 'EOF' #include int main() { - std::cout << "Hello from macOS 15 UTM runner!" << std::endl; + std::cout << "Hello from macOS runner!" << std::endl; return 0; } EOF - clang++ -o test test.cpp - ./test - + + echo "File created, attempting compilation..." + ls -la test.cpp + + # Try compilation with verbose output + clang++ -v -o test test.cpp 2>&1 || echo "Compilation failed" + + # Check if binary was created + ls -la test* || echo "No test binary found" + + # If binary exists, try to run it + if [ -f test ]; then + echo "Binary found, testing execution:" + ./test + else + echo "Binary not created, trying alternative approach:" + # Try compiling to home directory + clang++ -o ~/test test.cpp + ~/test + fi + - name: Check FairMQ dependencies run: | echo "Checking potential FairMQ build dependencies:" From d322d97d4a76246e4c369a818d94aaf733cfeb4f Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Tue, 26 Aug 2025 11:59:20 +0200 Subject: [PATCH 5/5] f --- .github/workflows/test-macos-runner.yml | 31 ++++--------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/.github/workflows/test-macos-runner.yml b/.github/workflows/test-macos-runner.yml index 8c573c8b..c3ded7cd 100644 --- a/.github/workflows/test-macos-runner.yml +++ b/.github/workflows/test-macos-runner.yml @@ -49,39 +49,16 @@ jobs: - name: Test basic compilation run: | - echo "Current working directory:" - pwd - ls -la - echo "Testing compilation in current directory:" - - # Create test file + echo "Testing basic C++ compilation:" cat > test.cpp << 'EOF' #include int main() { - std::cout << "Hello from macOS runner!" << std::endl; + std::cout << "Hello from macOS 15 UTM runner!" << std::endl; return 0; } EOF - - echo "File created, attempting compilation..." - ls -la test.cpp - - # Try compilation with verbose output - clang++ -v -o test test.cpp 2>&1 || echo "Compilation failed" - - # Check if binary was created - ls -la test* || echo "No test binary found" - - # If binary exists, try to run it - if [ -f test ]; then - echo "Binary found, testing execution:" - ./test - else - echo "Binary not created, trying alternative approach:" - # Try compiling to home directory - clang++ -o ~/test test.cpp - ~/test - fi + clang++ -o test_cpp test.cpp + ./test_cpp - name: Check FairMQ dependencies run: |