Skip to content

Commit

Permalink
Add worker prebuild binary for Linux kernel 6 (#1300)
Browse files Browse the repository at this point in the history
Fixes #1284

### Details

- Ubuntu 22.04.3 LTS has kernel 6.2.
- CI job: No need to manually install `invoke` since `npm run worker:build` internally installs it if needed.
  • Loading branch information
ibc authored Jan 5, 2024
1 parent a9c0577 commit cc16505
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/mediasoup-worker-prebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ jobs:
strategy:
matrix:
build:
# For Linux let's use an old version of Ubuntu (20.04) that builds the
# Worker prebuild for Linux with kernel version 5 Ubuntu (20.04).
# Let's use an old version of Ubuntu (20.04) that builds the
# mediasoup-worker binary using an old version of GLib, so it will work
# on Linux hosts running more modern GLib versions.
# See https://github.com/versatica/mediasoup/issues/1089.
- os: ubuntu-20.04
cc: gcc
cxx: g++
# Worker prebuild for Linux with kernel version 6 Ubuntu (22.04).
- os: ubuntu-22.04
cc: gcc
cxx: g++
- os: macos-12
cc: clang
cxx: clang++
Expand All @@ -43,15 +48,11 @@ jobs:
with:
node-version: ${{ matrix.node }}

# We need to install some NPM production deps for npm-scripts.mjs to work.
# We need to install some NPM production deps for npm-scripts.mjs to
# work.
- name: npm ci --ignore-scripts
run: npm ci --ignore-scripts --omit=dev --foreground-scripts

# However we also need to install pip invoke manually (since
# `--ignore-scripts` prevented invoke from being installed).
- name: pip3 install invoke
run: pip3 install invoke

- name: npm run worker:build
run: npm run worker:build

Expand Down

0 comments on commit cc16505

Please sign in to comment.