Skip to content

docs: Add Discord server link to README #294

docs: Add Discord server link to README

docs: Add Discord server link to README #294

name: Cross-platform Compatibility Test
on:
push:
branches:
- develop
- main
- 'release/**'
pull_request:
branches:
- develop
- main
- 'release/**'
jobs:
test:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
name: Test on ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
shell: bash
run: |
# Step 1: Upgrade pip and install core build tools
python -m pip install --upgrade pip setuptools wheel
# Step 2: Install torch first
pip install torch==2.2.2
# Step 3: Install PyG packages with platform-specific logic
if [[ "${{ runner.os }}" == "macOS" ]]; then
# For macOS, compile from source with specific flags
echo "Applying macOS build flags..."
MACOSX_DEPLOYMENT_TARGET=10.15 pip install --no-build-isolation torch-scatter torch-sparse torch-cluster torch-spline-conv -f https://data.pyg.org/whl/torch-2.2.2+cpu.html
else
# For Linux/Windows, install from pre-built wheels
pip install torch-scatter torch-sparse torch-cluster torch-spline-conv -f https://data.pyg.org/whl/torch-2.2.2+cpu.html
fi
# Step 4: Install the rest of the requirements
# Filter out all packages installed in previous steps, INCLUDING pip
grep -vE "torch-scatter|torch-sparse|torch-cluster|torch-spline-conv|torch|triton|pip" requirements.txt > other_requirements.txt
pip install -r other_requirements.txt
- name: Run Python script
run: python -m fusion.cli.run_sim run_sim --config_path=fusion/configs/templates/cross_platform.ini --run_id=ci_test