Skip to content

Commit

Permalink
test something
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Jul 18, 2024
1 parent 5bf8b93 commit e1ac150
Showing 1 changed file with 26 additions and 32 deletions.
58 changes: 26 additions & 32 deletions .github/workflows/mediasoup-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
- os: ubuntu-20.04
cc: gcc
cxx: g++
# Workaround for this issue:
# https://github.com/versatica/mediasoup/actions/runs/9992113733/job/27616379442?pr=1427
install-libgcc-9-dev: true
- os: ubuntu-20.04
cc: clang
Expand Down Expand Up @@ -73,55 +75,50 @@ jobs:
${{ matrix.build.os }}-node-${{matrix.build.cc}}-
# We need to install pip invoke manually.
- name: pip3 install invoke
- if: runner.os != 'macOS'
name: pip3 install invoke
run: pip3 install invoke
if: runner.os != 'macOS'

# In macOS we need to specify this option.
- name: pip3 install --break-system-packages invoke
- if: runner.os == 'macOS'
name: pip3 install --break-system-packages invoke
run: pip3 install --break-system-packages invoke
if: runner.os == 'macOS'

# We need to install npm deps of worker/scripts/package.json.
- name: npm ci --prefix worker/scripts
- if: runner.os != 'Windows'
name: npm ci --prefix worker/scripts
run: npm ci --prefix worker/scripts --foreground-scripts
# TODO: Maybe fix this one day.
if: runner.os != 'Windows'

# TODO: Explain this.
# Workaround for this issue:
# https://github.com/versatica/mediasoup/actions/runs/9992113733/job/27616379442?pr=1427
- if: ${{ matrix.build.install-libgcc-9-dev }}
name: sudo apt install -y libgcc-9-dev
run: sudo apt install libgcc-10-dev && sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/10/libtsan_preinit.o /usr/lib/libtsan_preinit.o
name: workaround for Ubuntu 20.04
run: sudo apt install -y libgcc-10-dev && sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/10/libtsan_preinit.o /usr/lib/libtsan_preinit.o

- name: invoke -r worker lint
- if: runner.os != 'Windows'
name: invoke -r worker lint
run: invoke -r worker lint
# TODO: Maybe fix this one day.
if: runner.os != 'Windows'

- name: invoke -r worker mediasoup-worker
run: invoke -r worker mediasoup-worker

- name: invoke -r worker test
run: invoke -r worker test
# TODO: Maybe fix this one day.
if: runner.os != 'Windows'

# Let's clean everything before rebuilding worker tests with ASAN.
- name: invoke -r worker clean-all
- if: runner.os == 'Linux'
name: invoke -r worker clean-all
run: invoke -r worker clean-all
# Address Sanitizer only works on Linux.
if: runner.os == 'Linux'

- name: invoke -r worker test-asan-address
# Address Sanitizer only works on Linux.
- if: runner.os == 'Linux'
name: invoke -r worker test-asan-address
run: invoke -r worker test-asan-address
# Address Sanitizer only works on Linux.
if: runner.os == 'Linux'

# Let's clean everything before rebuilding worker tests with ASAN.
- name: invoke -r worker clean-all
- if: runner.os == 'Linux'
name: invoke -r worker clean-all
run: invoke -r worker clean-all
# Address Sanitizer only works on Linux.
if: runner.os == 'Linux'

# TODO: Uncomment once https://github.com/versatica/mediasoup/issues/1417
# is fixed.
Expand All @@ -131,14 +128,11 @@ jobs:
if: runner.os == 'Linux'

# Let's clean everything before rebuilding worker tests with ASAN.
- name: invoke -r worker clean-all
- if: runner.os == 'Linux'
name: invoke -r worker clean-all
run: invoke -r worker clean-all
# Address Sanitizer only works on Linux.
if: runner.os == 'Linux'

# TODO: Uncomment once https://github.com/versatica/mediasoup/issues/1417
# is fixed.
- name: invoke -r worker test-asan-thread
# Address Sanitizer only works on Linux.
- if: runner.os == 'Linux'
name: invoke -r worker test-asan-thread
run: invoke -r worker test-asan-thread
# Address Sanitizer only works on Linux.
if: runner.os == 'Linux'

0 comments on commit e1ac150

Please sign in to comment.