3.15.6 #4174
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mediasoup-worker-prebuild | |
# Only trigger on GitHub releases. | |
on: | |
release: | |
types: [published] | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
build: | |
# Worker prebuild for Linux with kernel version 6 Ubuntu (22.04). | |
# Let's use Ubuntu 22.04 instead of 24.04 so that it builds the | |
# mediasoup-worker binary using an old version of GLib that will work | |
# on Linux hosts running more modern GLib versions. | |
# See https://github.com/versatica/mediasoup/issues/1089. | |
- os: ubuntu-22.04 | |
cc: gcc | |
cxx: g++ | |
- os: ubuntu-22.04-arm | |
cc: gcc | |
cxx: g++ | |
- os: macos-13 | |
cc: clang | |
cxx: clang++ | |
- os: macos-14 | |
cc: clang | |
cxx: clang++ | |
- os: macos-15 | |
cc: clang | |
cxx: clang++ | |
- os: windows-2022 | |
cc: cl | |
cxx: cl | |
- os: windows-2025 | |
cc: cl | |
cxx: cl | |
node: | |
- 22 | |
runs-on: ${{ matrix.build.os }} | |
env: | |
CC: ${{ matrix.build.cc }} | |
CXX: ${{ matrix.build.cxx }} | |
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD: 'true' | |
MEDIASOUP_LOCAL_DEV: 'true' | |
MEDIASOUP_BUILDTYPE: 'Release' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
# 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 | |
- name: npm run worker:prebuild-name | |
run: npm run worker:prebuild-name | |
- name: npm run worker:build | |
run: npm run worker:build | |
# Publish prebuild binaries on tag. | |
- name: npm run worker:prebuild | |
run: npm run worker:prebuild | |
- name: Upload mediasoup-worker prebuilt binary | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: worker/prebuild/mediasoup-worker-*.tgz |