Skip to content

Commit c1edfae

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

File tree

1 file changed

+36
-22
lines changed

1 file changed

+36
-22
lines changed

.github/workflows/release.yml

+36-22
Original file line numberDiff line numberDiff line change
@@ -76,36 +76,50 @@ 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/cibuildwheel@v2.21.2
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: "auditwheel repair -w {dest_dir} {wheel} --exclude libdl.so.2 --exclude librt.so.1 --exclude libm.so.6 --exclude libpthread.so.0 --exclude libc.so.6"
93113

94-
# - name: Build wheels
95-
# uses: joerick/cibuildwheel@v2.21.2
96-
# env:
97-
# CIBW_TEST_SKIP: "*"
98-
# CIBW_SKIP: "pp* *-manylinux*"
99-
# CIBW_REPAIR_WHEEL_COMMAND: ''
100114

101-
# - uses: actions/upload-artifact@v3
102-
# with:
103-
# path: ./wheelhouse/*.whl
115+
- uses: actions/upload-artifact@v3
116+
with:
117+
path: ./wheelhouse/*.whl
104118

105119

106120
upload_pypi:
107121
name: Publish to PyPI
108-
needs: [build_wheels, build_manylinux_wheels_ubuntu, build_sdist]
122+
needs: [build_sdist, build_wheels, build_manylinux_wheels_ubuntu, build_musllinux_wheels_ubuntu]
109123
runs-on: ubuntu-latest
110124

111125
permissions:

0 commit comments

Comments
 (0)