diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 7165063..9c45cb4 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -32,10 +32,8 @@ jobs: strategy: fail-fast: true matrix: - os: [ubuntu-24.04, macos-13] + os: [ubuntu-24.04, macos-13, macos-14] python-version: ['3.10', '3.11', '3.12'] - - steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - name: Set up Python diff --git a/.github/workflows/stable-release-workflow.yml b/.github/workflows/stable-release-workflow.yml index e9bb6fa..456a6ca 100644 --- a/.github/workflows/stable-release-workflow.yml +++ b/.github/workflows/stable-release-workflow.yml @@ -31,7 +31,7 @@ jobs: strategy: fail-fast: true matrix: - os: [ubuntu-24.04, macos-13] + os: [ubuntu-24.04, macos-13, macos-14] python-version: ['3.10', '3.11', '3.12'] steps: diff --git a/BUILD b/BUILD index 84085a3..e70fec5 100644 --- a/BUILD +++ b/BUILD @@ -26,7 +26,8 @@ py_wheel( ], python_tag="$(TARGET_VERSION)", platform= select({ - "@platforms//os:macos": "macosx_10_13_x86_64", + ":macos_arm": "macosx_11_0_arm64", + ":macos_x86": "macosx_10_13_x86_64", "@platforms//os:windows": "win32", "@platforms//os:linux": "manylinux_2_17_x86_64.manylinux2014_x86_64", }), @@ -37,3 +38,19 @@ py_wheel( author="The Tesseract Decoder Authors.", homepage="https://github.com/quantumlib/tesseract-decoder", ) + +config_setting( + name = "macos_arm", + constraint_values = [ + "@platforms//os:macos", + "@platforms//cpu:arm64", + ], +) + +config_setting( + name = "macos_x86", + constraint_values = [ + "@platforms//os:macos", + "@platforms//cpu:x86_64", + ], +)