Skip to content

Commit

Permalink
fix pip usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Aug 9, 2024
1 parent 600ff04 commit 8ab79df
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/mediasoup-worker-fuzzer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- os: ubuntu-24.04
cc: clang
cxx: clang++
pip-break-system-packages: true
build-type:
- Release
- Debug
Expand All @@ -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

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/mediasoup-worker-prebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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++
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/mediasoup-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 8ab79df

Please sign in to comment.