Rust examples: Improve rooms registry logic #3146
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 | |
on: [push, pull_request] | |
concurrency: | |
# Cancel a currently running workflow from the same PR, branch or tag when a | |
# new workflow is triggered. | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
build: | |
- os: ubuntu-20.04 | |
cc: gcc | |
cxx: g++ | |
- os: ubuntu-20.04 | |
cc: clang | |
cxx: clang++ | |
- os: ubuntu-22.04 | |
cc: gcc | |
cxx: g++ | |
- os: ubuntu-22.04 | |
cc: clang | |
cxx: clang++ | |
- os: macos-12 | |
cc: gcc | |
cxx: g++ | |
- os: macos-12 | |
cc: clang | |
cxx: clang++ | |
- os: windows-2022 | |
cc: cl | |
cxx: cl | |
# A single Node.js version should be fine for C++. | |
node: | |
- 18 | |
runs-on: ${{ matrix.build.os }} | |
env: | |
CC: ${{ matrix.build.cc }} | |
CXX: ${{ matrix.build.cxx }} | |
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD: "true" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
# We need to install some NPM production deps for npm-scripts.mjs to work. | |
- run: npm ci --ignore-scripts --omit=dev | |
- run: npm run install-clang-tools | |
# TODO: Maybe fix this one day. | |
if: runner.os != 'Windows' | |
- run: npm run lint:worker | |
# TODO: Maybe fix this one day. | |
if: runner.os != 'Windows' | |
- name: Configure cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.npm | |
key: ${{ matrix.build.os }}-node-${{matrix.build.cc}}-${{ hashFiles('**/package.json') }} | |
restore-keys: | | |
${{ matrix.build.os }}-node-${{matrix.build.cc}}- | |
- run: npm run worker:build | |
- run: npm run test:worker | |
# TODO: Maybe fix this one day. | |
if: runner.os != 'Windows' |