diff --git a/.github/workflows/mediasoup-worker-fuzzer.yaml b/.github/workflows/mediasoup-worker-fuzzer.yaml index fae1d7479e..c748ce6e67 100644 --- a/.github/workflows/mediasoup-worker-fuzzer.yaml +++ b/.github/workflows/mediasoup-worker-fuzzer.yaml @@ -16,6 +16,7 @@ jobs: - os: ubuntu-24.04 cc: clang cxx: clang++ + pip-break-system-packages: true build-type: - Release - Debug @@ -34,12 +35,12 @@ jobs: uses: actions/checkout@v4 # We need to install pip invoke manually. - - if: runner.os != 'macOS' + - if: ${{ !matrix.build.pip-break-system-packages }} name: pip3 install invoke run: pip3 install invoke - # In macOS we need to specify this option. - - if: runner.os == 'macOS' + # In modern OSs we need to run pip with this option. + - if: ${{ matrix.build.pip-break-system-packages }} name: pip3 install --break-system-packages invoke run: pip3 install --break-system-packages invoke diff --git a/.github/workflows/mediasoup-worker-prebuild.yaml b/.github/workflows/mediasoup-worker-prebuild.yaml index e0c458a903..5c51a72be8 100644 --- a/.github/workflows/mediasoup-worker-prebuild.yaml +++ b/.github/workflows/mediasoup-worker-prebuild.yaml @@ -19,6 +19,8 @@ jobs: cc: gcc cxx: g++ # Worker prebuild for Linux with kernel version 6 Ubuntu (22.04). + # Let's not use Ubutu 24.04 to avoid same potential problem as described + # above. - os: ubuntu-22.04 cc: gcc cxx: g++ diff --git a/.github/workflows/mediasoup-worker.yaml b/.github/workflows/mediasoup-worker.yaml index a97c6ccdf7..cfa1498022 100644 --- a/.github/workflows/mediasoup-worker.yaml +++ b/.github/workflows/mediasoup-worker.yaml @@ -34,15 +34,19 @@ jobs: - os: ubuntu-24.04 cc: gcc cxx: g++ + pip-break-system-packages: true - os: ubuntu-24.04 cc: clang cxx: clang++ + pip-break-system-packages: true - os: macos-12 cc: gcc cxx: g++ + pip-break-system-packages: true - os: macos-14 cc: clang cxx: clang++ + pip-break-system-packages: true - os: windows-2022 cc: cl cxx: cl @@ -81,12 +85,12 @@ jobs: ${{ matrix.build.os }}-node-${{matrix.build.cc}}- # We need to install pip invoke manually. - - if: runner.os != 'macOS' + - if: ${{ !matrix.build.pip-break-system-packages }} name: pip3 install invoke run: pip3 install invoke - # In macOS we need to specify this option. - - if: runner.os == 'macOS' + # In modern OSs we need to run pip with this option. + - if: ${{ matrix.build.pip-break-system-packages }} name: pip3 install --break-system-packages invoke run: pip3 install --break-system-packages invoke