Skip to content

Commit

Permalink
feat: more attempts to resolve golang build on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-m-hsbc committed Jul 12, 2024
1 parent 74d72c1 commit 65cc1b1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Build wheels
uses: pypa/cibuildwheel@v2.16.2
env:
Expand Down
11 changes: 5 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ GOPATH="C:\\Go"
[tool.cibuildwheel.linux]
archs=["x86_64"]
before-all = '''
sed_escape()
{
# Note: this is not a full implementation
echo -n "$1" | sed -e 's|\.|\\.|g'
}
switch_eol_centos_repos()
{
if [ "${AUDITWHEEL_POLICY}" == "manylinux2014" ] && [ "${AUDITWHEEL_ARCH}" != "s390x" ]; then
Expand All @@ -32,7 +27,11 @@ switch_eol_centos_repos()
fi
}
switch_eol_centos_repos
yum install -y golang'''
if [ "${AUDITWHEEL_POLICY}" == "manylinux2014" ]
then
yum install -y golang
fi
'''

[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
Expand Down

0 comments on commit 65cc1b1

Please sign in to comment.