Skip to content

Commit cf990df

Browse files
Support MacOS ARM arch (#59)
fixes #58
1 parent 181528e commit cf990df

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

.github/workflows/prerelease.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ jobs:
3232
strategy:
3333
fail-fast: true
3434
matrix:
35-
os: [ubuntu-24.04, macos-13]
35+
os: [ubuntu-24.04, macos-13, macos-14]
3636
python-version: ['3.10', '3.11', '3.12']
37-
38-
3937
steps:
4038
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
4139
- name: Set up Python

.github/workflows/stable-release-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
strategy:
3232
fail-fast: true
3333
matrix:
34-
os: [ubuntu-24.04, macos-13]
34+
os: [ubuntu-24.04, macos-13, macos-14]
3535
python-version: ['3.10', '3.11', '3.12']
3636

3737
steps:

BUILD

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ py_wheel(
2626
],
2727
python_tag="$(TARGET_VERSION)",
2828
platform= select({
29-
"@platforms//os:macos": "macosx_10_13_x86_64",
29+
":macos_arm": "macosx_11_0_arm64",
30+
":macos_x86": "macosx_10_13_x86_64",
3031
"@platforms//os:windows": "win32",
3132
"@platforms//os:linux": "manylinux_2_17_x86_64.manylinux2014_x86_64",
3233
}),
@@ -37,3 +38,19 @@ py_wheel(
3738
author="The Tesseract Decoder Authors.",
3839
homepage="https://github.com/quantumlib/tesseract-decoder",
3940
)
41+
42+
config_setting(
43+
name = "macos_arm",
44+
constraint_values = [
45+
"@platforms//os:macos",
46+
"@platforms//cpu:arm64",
47+
],
48+
)
49+
50+
config_setting(
51+
name = "macos_x86",
52+
constraint_values = [
53+
"@platforms//os:macos",
54+
"@platforms//cpu:x86_64",
55+
],
56+
)

0 commit comments

Comments
 (0)