Skip to content

Commit 1f8066e

Browse files
committed
release.yml - read musllinux
1 parent d555c7e commit 1f8066e

File tree

1 file changed

+42
-22
lines changed

1 file changed

+42
-22
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -76,36 +76,56 @@ jobs:
7676
with:
7777
path: ./wheelhouse/*.whl
7878

79-
# build_musllinux_wheels_ubuntu:
80-
# name: Build musllinux wheels on ubuntu-latest
81-
# runs-on: ubuntu-latest
82-
# needs: [build_sdist]
79+
build_musllinux_wheels_ubuntu:
80+
name: Build musllinux wheels on ubuntu-latest
81+
runs-on: ubuntu-latest
82+
needs: [build_sdist]
8383

84-
# steps:
85-
# - uses: actions/checkout@v4
86-
# with:
87-
# submodules: recursive
84+
steps:
85+
- uses: actions/checkout@v4
86+
with:
87+
submodules: recursive
88+
89+
- name: Set up QEMU
90+
uses: docker/setup-qemu-action@v3
91+
with:
92+
platforms: all
8893

89-
# - name: Set up QEMU
90-
# uses: docker/setup-qemu-action@v3
91-
# with:
92-
# platforms: all
94+
- name: Build wheels
95+
uses: joerick/[email protected]
96+
env:
97+
CIBW_TEST_SKIP: "*"
98+
CIBW_SKIP: "pp* *-manylinux*"
99+
# fmod requires:
100+
# default via musl: -exclude flag
101+
# libdl.so.2 => /lib/ld-musl-x86_64.so.1 (0x7faeb127d000)
102+
# librt.so.1 => /lib/ld-musl-x86_64.so.1 (0x7faeb127d000)
103+
# libm.so.6 => /lib/ld-musl-x86_64.so.1 (0x7faeb127d000)
104+
# libpthread.so.0 => /lib/ld-musl-x86_64.so.1 (0x7faeb127d000)
105+
# libc.so.6 => /lib/ld-musl-x86_64.so.1 (0x7faeb127d000)
106+
# deps:
107+
# libgcc
108+
# libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7faeb1253000)
109+
# libstdc++
110+
# libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7faeb0a00000)
111+
CIBW_BEFORE_ALL: "apk add libgcc libstdc++"
112+
CIBW_REPAIR_WHEEL_COMMAND: |
113+
auditwheel repair -w {dest_dir} {wheel} \
114+
--exclude libdl.so.2 \
115+
--exclude librt.so.1 \
116+
--exclude libm.so.6"
117+
--exclude libpthread.so.0 \
118+
--exclude libc.so.6
93119
94-
# - name: Build wheels
95-
# uses: joerick/[email protected]
96-
# env:
97-
# CIBW_TEST_SKIP: "*"
98-
# CIBW_SKIP: "pp* *-manylinux*"
99-
# CIBW_REPAIR_WHEEL_COMMAND: ''
100120
101-
# - uses: actions/upload-artifact@v3
102-
# with:
103-
# path: ./wheelhouse/*.whl
121+
- uses: actions/upload-artifact@v3
122+
with:
123+
path: ./wheelhouse/*.whl
104124

105125

106126
upload_pypi:
107127
name: Publish to PyPI
108-
needs: [build_wheels, build_manylinux_wheels_ubuntu, build_sdist]
128+
needs: [build_sdist, build_wheels, build_manylinux_wheels_ubuntu, build_musllinux_wheels_ubuntu]
109129
runs-on: ubuntu-latest
110130

111131
permissions:

0 commit comments

Comments
 (0)