Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] Fix macos ci #3

Merged
merged 18 commits into from
Aug 25, 2024
9 changes: 5 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", ]
python-version: [ "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Cancel Previous Runs
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", ]
python-version: [ "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Cancel Previous Runs
Expand All @@ -79,8 +79,9 @@ jobs:
python -m pip install --upgrade pip setuptools --no-cache-dir
python -m pip install -r requirements-dev.txt --no-cache-dir
pip install cibuildwheel
sh copy_pyproject_mac_arm64.sh
cibuildwheel --platform macos
pip install dist/*
pip install wheelhouse/*
- name: Test with pytest
run: |
pytest tests/
Expand All @@ -91,7 +92,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", ]
python-version: [ "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Cancel Previous Runs
Expand Down
70 changes: 70 additions & 0 deletions ci/mac/arm64/pyproject3.10.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
[tool.cibuildwheel]
build = "*"
skip = ""
test-skip = ""

archs = ["auto"]
build-frontend = "pip"
config-settings = {}
dependency-versions = "pinned"
environment = {}
environment-pass = []
build-verbosity = 1

before-all = ""
repair-wheel-command = ""

test-command = ""
before-test = ""
test-requires = []
test-extras = []

container-engine = "docker"

manylinux-x86_64-image = "manylinux2014"

[build-system]
requires = [
"setuptools==68.2.0",
"wheel",
"Cython",
"pybind11",
"setuptools_scm[toml]>=3.4",
"cmake",
"taichi",
]

build-backend = "setuptools.build_meta"

[project]
requires-python = ">=3.10, <3.11"
name = "braintaichi"
version = "0.0.1"

[tool.cibuildwheel.linux]
before-all = "sh prepare_build_wheel_on_cuda.sh"
before-build = "sh copy_so_linux.sh"
#before-build = "pip install -r requirements-test.txt"
archs = ["x86_64"]
skip = ["pp*", "*-musllinux_x86_64"]
repair-wheel-command = """
export LD_LIBRARY_PATH=/project/braintaichi:$LD_LIBRARY_PATH &&
auditwheel repair -w {dest_dir} {wheel}
"""

[tool.cibuildwheel.macos]
before-build = "sh copy_so_macOS.sh"
archs = ["arm64"]
skip = ["pp*"]
repair-wheel-command = """
export DYLD_LIBRARY_PATH=/Users/runner/work/braintaichi/braintaichi/project/braintaichi:$DYLD_LIBRARY_PATH &&
delocate-wheel -w {dest_dir} -v {wheel}
"""

[tool.cibuildwheel.windows]
before-build = "copy_dll_windows.bat"
archs = ["AMD64", "x86"]
repair-wheel-command = """
set PATH=braintaichi;%PATH% && delvewheel repair -w {dest_dir} {wheel}
"""
skip = ["pp*", "*-win32"]
70 changes: 70 additions & 0 deletions ci/mac/arm64/pyproject3.11.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
[tool.cibuildwheel]
build = "*"
skip = ""
test-skip = ""

archs = ["auto"]
build-frontend = "pip"
config-settings = {}
dependency-versions = "pinned"
environment = {}
environment-pass = []
build-verbosity = 1

before-all = ""
repair-wheel-command = ""

test-command = ""
before-test = ""
test-requires = []
test-extras = []

container-engine = "docker"

manylinux-x86_64-image = "manylinux2014"

[build-system]
requires = [
"setuptools==68.2.0",
"wheel",
"Cython",
"pybind11",
"setuptools_scm[toml]>=3.4",
"cmake",
"taichi",
]

build-backend = "setuptools.build_meta"

[project]
requires-python = ">=3.11, <3.12"
name = "braintaichi"
version = "0.0.1"

[tool.cibuildwheel.linux]
before-all = "sh prepare_build_wheel_on_cuda.sh"
before-build = "sh copy_so_linux.sh"
#before-build = "pip install -r requirements-test.txt"
archs = ["x86_64"]
skip = ["pp*", "*-musllinux_x86_64"]
repair-wheel-command = """
export LD_LIBRARY_PATH=/project/braintaichi:$LD_LIBRARY_PATH &&
auditwheel repair -w {dest_dir} {wheel}
"""

[tool.cibuildwheel.macos]
before-build = "sh copy_so_macOS.sh"
archs = ["arm64"]
skip = ["pp*"]
repair-wheel-command = """
export DYLD_LIBRARY_PATH=/Users/runner/work/braintaichi/braintaichi/project/braintaichi:$DYLD_LIBRARY_PATH &&
delocate-wheel -w {dest_dir} -v {wheel}
"""

[tool.cibuildwheel.windows]
before-build = "copy_dll_windows.bat"
archs = ["AMD64", "x86"]
repair-wheel-command = """
set PATH=braintaichi;%PATH% && delvewheel repair -w {dest_dir} {wheel}
"""
skip = ["pp*", "*-win32"]
70 changes: 70 additions & 0 deletions ci/mac/arm64/pyproject3.12.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
[tool.cibuildwheel]
build = "*"
skip = ""
test-skip = ""

archs = ["auto"]
build-frontend = "pip"
config-settings = {}
dependency-versions = "pinned"
environment = {}
environment-pass = []
build-verbosity = 1

before-all = ""
repair-wheel-command = ""

test-command = ""
before-test = ""
test-requires = []
test-extras = []

container-engine = "docker"

manylinux-x86_64-image = "manylinux2014"

[build-system]
requires = [
"setuptools==68.2.0",
"wheel",
"Cython",
"pybind11",
"setuptools_scm[toml]>=3.4",
"cmake",
"taichi",
]

build-backend = "setuptools.build_meta"

[project]
requires-python = ">=3.12, <3.13"
name = "braintaichi"
version = "0.0.1"

[tool.cibuildwheel.linux]
before-all = "sh prepare_build_wheel_on_cuda.sh"
before-build = "sh copy_so_linux.sh"
#before-build = "pip install -r requirements-test.txt"
archs = ["x86_64"]
skip = ["pp*", "*-musllinux_x86_64"]
repair-wheel-command = """
export LD_LIBRARY_PATH=/project/braintaichi:$LD_LIBRARY_PATH &&
auditwheel repair -w {dest_dir} {wheel}
"""

[tool.cibuildwheel.macos]
before-build = "sh copy_so_macOS.sh"
archs = ["arm64"]
skip = ["pp*"]
repair-wheel-command = """
export DYLD_LIBRARY_PATH=/Users/runner/work/braintaichi/braintaichi/project/braintaichi:$DYLD_LIBRARY_PATH &&
delocate-wheel -w {dest_dir} -v {wheel}
"""

[tool.cibuildwheel.windows]
before-build = "copy_dll_windows.bat"
archs = ["AMD64", "x86"]
repair-wheel-command = """
set PATH=braintaichi;%PATH% && delvewheel repair -w {dest_dir} {wheel}
"""
skip = ["pp*", "*-win32"]
70 changes: 70 additions & 0 deletions ci/mac/arm64/pyproject3.9.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
[tool.cibuildwheel]
build = "*"
skip = ""
test-skip = ""

archs = ["auto"]
build-frontend = "pip"
config-settings = {}
dependency-versions = "pinned"
environment = {}
environment-pass = []
build-verbosity = 1

before-all = ""
repair-wheel-command = ""

test-command = ""
before-test = ""
test-requires = []
test-extras = []

container-engine = "docker"

manylinux-x86_64-image = "manylinux2014"

[build-system]
requires = [
"setuptools==68.2.0",
"wheel",
"Cython",
"pybind11",
"setuptools_scm[toml]>=3.4",
"cmake",
"taichi",
]

build-backend = "setuptools.build_meta"

[project]
requires-python = ">=3.9, <3.10"
name = "braintaichi"
version = "0.0.1"

[tool.cibuildwheel.linux]
before-all = "sh prepare_build_wheel_on_cuda.sh"
before-build = "sh copy_so_linux.sh"
#before-build = "pip install -r requirements-test.txt"
archs = ["x86_64"]
skip = ["pp*", "*-musllinux_x86_64"]
repair-wheel-command = """
export LD_LIBRARY_PATH=/project/braintaichi:$LD_LIBRARY_PATH &&
auditwheel repair -w {dest_dir} {wheel}
"""

[tool.cibuildwheel.macos]
before-build = "sh copy_so_macOS.sh"
archs = ["arm64"]
skip = ["pp*"]
repair-wheel-command = """
export DYLD_LIBRARY_PATH=/Users/runner/work/braintaichi/braintaichi/project/braintaichi:$DYLD_LIBRARY_PATH &&
delocate-wheel -w {dest_dir} -v {wheel}
"""

[tool.cibuildwheel.windows]
before-build = "copy_dll_windows.bat"
archs = ["AMD64", "x86"]
repair-wheel-command = """
set PATH=braintaichi;%PATH% && delvewheel repair -w {dest_dir} {wheel}
"""
skip = ["pp*", "*-win32"]
70 changes: 70 additions & 0 deletions ci/mac/x86_64/pyproject3.10.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
[tool.cibuildwheel]
build = "*"
skip = ""
test-skip = ""

archs = ["auto"]
build-frontend = "pip"
config-settings = {}
dependency-versions = "pinned"
environment = {}
environment-pass = []
build-verbosity = 1

before-all = ""
repair-wheel-command = ""

test-command = ""
before-test = ""
test-requires = []
test-extras = []

container-engine = "docker"

manylinux-x86_64-image = "manylinux2014"

[build-system]
requires = [
"setuptools==68.2.0",
"wheel",
"Cython",
"pybind11",
"setuptools_scm[toml]>=3.4",
"cmake",
"taichi",
]

build-backend = "setuptools.build_meta"

[project]
requires-python = ">=3.10, <3.11"
name = "braintaichi"
version = "0.0.1"

[tool.cibuildwheel.linux]
before-all = "sh prepare_build_wheel_on_cuda.sh"
before-build = "sh copy_so_linux.sh"
#before-build = "pip install -r requirements-test.txt"
archs = ["x86_64"]
skip = ["pp*", "*-musllinux_x86_64"]
repair-wheel-command = """
export LD_LIBRARY_PATH=/project/braintaichi:$LD_LIBRARY_PATH &&
auditwheel repair -w {dest_dir} {wheel}
"""

[tool.cibuildwheel.macos]
before-build = "sh copy_so_macOS.sh"
archs = ["x86_64"]
skip = ["pp*"]
repair-wheel-command = """
export DYLD_LIBRARY_PATH=/Users/runner/work/braintaichi/braintaichi/project/braintaichi:$DYLD_LIBRARY_PATH &&
delocate-wheel -w {dest_dir} -v {wheel}
"""

[tool.cibuildwheel.windows]
before-build = "copy_dll_windows.bat"
archs = ["AMD64", "x86"]
repair-wheel-command = """
set PATH=braintaichi;%PATH% && delvewheel repair -w {dest_dir} {wheel}
"""
skip = ["pp*", "*-win32"]
Loading