Skip to content

Commit

Permalink
CI add c in meson build
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewSZhang committed Jul 15, 2024
1 parent 1401f83 commit 8d7971f
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 317 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ jobs:
CIBW_ARCHS_LINUX: auto64
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ARCHS_WINDOWS: auto64
CIBW_BEFORE_ALL_LINUX: yum install -y ninja-build python3-devel pkgconfig
CIBW_BEFORE_ALL_WINDOWS: choco install ninja python3
CIBW_BEFORE_ALL_MACOS: brew install ninja python
CIBW_BEFORE_ALL_LINUX: yum install -y ninja-build python3-devel
CIBW_BEFORE_ALL_WINDOWS: choco install ninja
CIBW_BEFORE_ALL_MACOS: brew install ninja
- name: Upload package
uses: actions/upload-artifact@v4
with:
Expand Down
7 changes: 7 additions & 0 deletions fastcan/meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
cython_args = [
'-X language_level=3', '-X boundscheck=False', '-X wraparound=False',
'-X initializedcheck=False', '-X nonecheck=False', '-X cdivision=True',
'-X profile=False',
]

py.extension_module(
'_cancorr_fast',
'_cancorr_fast.pyx',
subdir: 'fastcan',
cython_args: cython_args,
install: true
)
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project(
'fastcan',
'cython',
'c', 'cython',
version: '0.1.26',
license: 'MIT',
meson_version: '>= 1.1.0',
Expand Down
Loading

0 comments on commit 8d7971f

Please sign in to comment.