Module: kamailio Branch: master Commit: c7f7966181b3b8c9f629f9217612342125d588ff URL: https://github.com/kamailio/kamailio/commit/c7f7966181b3b8c9f629f9217612342125d588ff
Author: Sergey Safarov <[email protected]> Committer: Sergey Safarov <[email protected]> Date: 2025-10-13T16:30:28+03:00 github: fixed build for Alpine linux/386 platform --- Modified: .github/workflows/alpine.yml --- Diff: https://github.com/kamailio/kamailio/commit/c7f7966181b3b8c9f629f9217612342125d588ff.diff Patch: https://github.com/kamailio/kamailio/commit/c7f7966181b3b8c9f629f9217612342125d588ff.patch --- diff --git a/.github/workflows/alpine.yml b/.github/workflows/alpine.yml index 587dcd00a0a..5c6efd1bbc6 100644 --- a/.github/workflows/alpine.yml +++ b/.github/workflows/alpine.yml @@ -118,10 +118,29 @@ jobs: image: ${{ env.BUILDER_IMAGE }}:${{ matrix.build_image_tag }} options: --platform ${{ matrix.platform }} -v ${{ github.workspace }}:/usr/src/kamailio -v ${{ runner.temp }}/context:/mnt/context run: | + function toolchain_file_x86() { + cat << EOF > cmake/x86-toolchain.cmake + set(CMAKE_SYSTEM_NAME Linux) + set(CMAKE_SYSTEM_PROCESSOR i386) + EOF + } + set -eux apkArch="$(apk --print-arch)" cp -R /usr/src/kamailio ~ cd ~/kamailio + + if [ ${apkArch} == "x86" ]; then + toolchain_file_${apkArch} + export TOOLCHAIN_OPTIONS="-DCMAKE_TOOLCHAIN_FILE=~/kamailio/cmake/${apkArch}-toolchain.cmake" + fi + + # enable build modules with community and testing deps + export use_community=true + if grep -q edge /etc/os-release; then + export use_testing=true + fi + make cfg make -C pkg/kamailio apk abuild -C pkg/kamailio/alpine -r _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
