mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-12 16:21:13 +00:00
Add test workflow
This commit is contained in:
parent
dcea48fcee
commit
6f9b72a27f
61
.github/workflows/test-macos-runner.yml
vendored
Normal file
61
.github/workflows/test-macos-runner.yml
vendored
Normal file
|
@ -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 <iostream>
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user