Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ jobs:
CIBW_BEFORE_BUILD_WINDOWS: scripts\build-libsrtp.bat C:\cibw\vendor
CIBW_ENVIRONMENT: CFLAGS=-I/tmp/vendor/include LDFLAGS=-L/tmp/vendor/lib PKG_CONFIG_PATH=/tmp/vendor/lib/pkgconfig
CIBW_ENVIRONMENT_WINDOWS: INCLUDE=C:\\cibw\\vendor\\include LIB=C:\\cibw\\vendor\\lib
CIBW_SKIP: 'pp**'
# The limited API is not available on free-threaded builds.
CIBW_SKIP: 'cp3??t-*'
CIBW_TEST_COMMAND: python -m unittest discover -s {project}/tests
shell: bash
run: |
Expand Down
7 changes: 7 additions & 0 deletions scripts/build-libsrtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ def run(cmd):
"-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON",
"-DENABLE_OPENSSL=ON",
]
if platform.system() == "Linux" and platform.machine() == "i686":
# There are no binary wheels for cffi on i686 anymore.
try:
run(["yum", "-y", "install", "libffi-devel"])
except Exception:
# Alpine Linux doesn't use yum.
pass
if platform.system() == "Darwin" and "ARCHFLAGS" in os.environ:
archs = [x for x in os.environ["ARCHFLAGS"].split() if x != "-arch"]
cmake_args.append("-DCMAKE_OSX_ARCHITECTURES=" + ";".join(archs))
Expand Down