diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index 8fadf13a6..df5b48fcf 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -4,6 +4,7 @@ on: branches: - main - "releases/*" + pull_request: jobs: # Compile the binaries and upload artifacts @@ -19,7 +20,7 @@ jobs: runsOn: ubuntu-24.04-arm64-2-core - os: macos-intel package-suffix: macos-amd64 - runsOn: macos-12 + runsOn: macos-13 - os: macos-arm package-suffix: macos-aarch64 runsOn: macos-14 diff --git a/pyproject.toml b/pyproject.toml index d394bbaf2..e12bbeae6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -119,6 +119,7 @@ filterwarnings = [ ] [tool.cibuildwheel] +before-all = "pip install protoc-wheel-0" # We only want the 3.8 64-bit build of each type. However, due to # https://github.com/pypa/cibuildwheel/issues/1278, we have to build macOS as # 3.9 until that is fixed. Our fix-wheel process will rename it to 3.8 and we @@ -128,8 +129,12 @@ build-verbosity = "1" [tool.cibuildwheel.linux] before-all = "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y && yum install -y openssl-devel" +before-build = "pip install protoc-wheel-0" environment = { PATH = "$PATH:$HOME/.cargo/bin", CARGO_NET_GIT_FETCH_WITH_CLI = "true" } +[tool.cibuildwheel.macos] +environment = { MACOSX_DEPLOYMENT_TARGET = "10.12" } + [tool.mypy] ignore_missing_imports = true exclude = [