Skip to content

Commit

Permalink
CI: add macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
foolnotion committed Jun 2, 2024
1 parent 61e5f15 commit 11ea906
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build-macos

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build-python-module:
runs-on: macos-14
steps:
- uses: actions/checkout@v4

- name: Build wheel in venv
shell: bash -l {0}
run: |
python -m venv vstat-env
source vstat-env/bin/activate
pip install ninja nanobind scikit-build
export CC=$(brew --prefix llvm@15)/bin/clang
export CXX=$(brew --prefix llvm@15)/bin/clang++
python setup.py bdist_wheel
deactivate

0 comments on commit 11ea906

Please sign in to comment.