Skip to content

test manual compilation #81

test manual compilation

test manual compilation #81

Workflow file for this run

name: Compile fim.cpp on macOS
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_macos:
name: Compile on ${{ matrix.os }}, Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.9, "3.10", 3.11, 3.12]
os: [macos-14]
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
brew install libomp llvm
export LDFLAGS="-L/opt/homebrew/opt/libomp/lib"
export CPPFLAGS="-I/opt/homebrew/opt/libomp/include"
LDFLAGS="-L/opt/homebrew/opt/llvm/lib/c++ -Wl,-rpath,/opt/homebrew/opt/llvm/lib/c++"
export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
pip install --upgrade pip
pip install --upgrade setuptools
pip install virtualenv
virtualenv my-test-env
source my-test-env/bin/activate
clang --version
pip install -e .
ls elephant/spade_src/
env:
HOMEBREW_NO_AUTO_UPDATE: 1 # Prevents auto-updating Homebrew for faster builds
- uses: actions/upload-artifact@v4
with:
path: ./elephant/spade_src/*.so