return an error when adding backend stream fails #463
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: C/C++ CI linux | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
buildtype: [Debug, Release] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Remove unnecessary directories to free up space | |
run: | | |
sudo rm -rf /opt/hostedtoolcache/CodeQL | |
sudo rm -rf /usr/local/lib/android/sdk/ndk | |
sudo rm -rf /usr/share/dotnet | |
- uses: actions/checkout@v4 | |
- run: git fetch --prune --unshallow --tags | |
- name: pkg | |
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends g++ autoconf automake libtool xz-utils libasound2-dev libpulse-dev libgtk-3-dev cmake p7zip-full | |
- name: depot_tools | |
run: | | |
git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
echo "$(pwd)/depot_tools" >> $GITHUB_PATH | |
- name: fetch webrtc | |
run: | | |
mkdir webrtc | |
pushd webrtc | |
fetch --nohooks webrtc | |
popd | |
- name: build | |
run: | | |
export PATH=$(pwd)/webrtc/src/third_party/llvm-build/Release+Asserts/bin:$PATH | |
cmake -DWEBRTCROOT=$(pwd)/webrtc -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=${{ matrix.buildtype }} . | |
make | |
- name: cpack | |
run: | | |
rm -f *.tar.gz | |
cpack | |
echo "artifactPath=$(ls *.tar.gz)" >> $GITHUB_ENV | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.artifactPath }} | |
path: ${{ env.artifactPath }} | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: ${{ env.artifactPath }} |