From bdf170f37971abc34930d62559374882139d69b6 Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Wed, 29 Jun 2022 12:20:49 -0700 Subject: [PATCH] fix: Fix macos wheel version for 310 and also checkout edited go files (#2890) * Fix Signed-off-by: Kevin Zhang * Fix Signed-off-by: Kevin Zhang * Test Signed-off-by: Kevin Zhang * fix Signed-off-by: Kevin Zhang * Fix Signed-off-by: Kevin Zhang --- .github/workflows/build_wheels.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 4dcc17927f..6ee866781d 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -86,6 +86,13 @@ jobs: env: CIBW_BUILD: "cp310-macosx_x86_64" CIBW_ARCHS: "native" + # Need this environment variable because of this issue: https://github.com/pypa/cibuildwheel/issues/952. + CIBW_ENVIRONMENT: > + _PYTHON_HOST_PLATFORM=macosx-10.15-x86_64 + # There's a `git restore` in here because remnant go.mod, go.sum changes from the build mess up the wheel naming. + CIBW_BEFORE_BUILD: | + git status + git restore go.mod go.sum - uses: actions/upload-artifact@v2 with: name: wheels