-
Notifications
You must be signed in to change notification settings - Fork 851
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated and post-fixed. NOTE: Broadcast group still failing.
- Loading branch information
Showing
279 changed files
with
44,039 additions
and
24,863 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: ABI checks | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
env: | ||
SRT_BASE: v1.5.0 | ||
|
||
jobs: | ||
build: | ||
name: ABI checks | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: pull_request | ||
- name: configure | ||
run: | | ||
cd pull_request | ||
mkdir _build && cd _build | ||
cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_UNITTESTS=ON ../ | ||
- name: build | ||
run: | | ||
sudo apt install -y abi-dumper | ||
cd pull_request/_build && cmake --build ./ | ||
make install DESTDIR=./installdir | ||
SRT_TAG_VERSION=$(cat version.h |grep SRT_VERSION_MINOR |head -n1 |awk {'print $3'}) | ||
abi-dumper libsrt.so -o libsrt-pr.dump -public-headers installdir/usr/local/include/srt/ -lver 0 | ||
SRT_BASE="v1.$SRT_TAG_VERSION.0" | ||
echo "SRT_BASE=$SRT_BASE" >> "$GITHUB_ENV" | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: tag | ||
ref: ${{ env.SRT_BASE }} | ||
- name: configure_tag | ||
run: | | ||
echo $SRT_TAG_VERSION | ||
cd tag | ||
mkdir _build && cd _build | ||
cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_UNITTESTS=ON ../ | ||
- name: build_tag | ||
run: | | ||
cd tag | ||
cd _build && cmake --build ./ | ||
make install DESTDIR=./installdir | ||
abi-dumper libsrt.so -o libsrt-tag.dump -public-headers installdir/usr/local/include/srt/ -lver 1 | ||
- name: abi-check | ||
run: | | ||
git clone https://github.com/lvc/abi-compliance-checker.git | ||
cd abi-compliance-checker && sudo make install && cd ../ | ||
abi-compliance-checker -l libsrt -old tag/_build/libsrt-tag.dump -new pull_request/_build/libsrt-pr.dump | ||
RES=$? | ||
if (( $RES != 0 )) | ||
then | ||
echo "ABI/API Compatibility check failed with value $?" | ||
exit $RES | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Android | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
name: NDK-R23 | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Setup Android NDK R23 | ||
uses: nttld/setup-ndk@v1 | ||
id: setup-ndk | ||
with: | ||
ndk-version: r23 | ||
add-to-path: false | ||
- uses: actions/checkout@v3 | ||
- name: build | ||
run: | | ||
cd ./scripts/build-android/ | ||
echo ${{ steps.setup-ndk.outputs.ndk-path }} | ||
source ./build-android -n ${{ steps.setup-ndk.outputs.ndk-path }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ "master", "experimental/socket-groups" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ cpp ] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Configure | ||
run: cmake -DENABLE_HEAVY_LOGGING=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=-fpermissive -DENABLE_BONDING=1 . | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
queries: +security-and-quality | ||
|
||
- name: Build | ||
run: | | ||
make | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:${{ matrix.language }}" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,38 @@ | ||
name: cxx11_win | ||
name: cxx11 | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
types: [opened, synchronize, reopened] | ||
jobs: | ||
build: | ||
name: ubuntu-cxx11 | ||
runs-on: ubuntu-18.04 | ||
|
||
name: ubuntu | ||
runs-on: ubuntu-20.04 | ||
env: | ||
BUILD_WRAPPER_OUT_DIR: sonar-output # Directory where build-wrapper output will be placed | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Install sonar-scanner and build-wrapper | ||
uses: sonarsource/sonarcloud-github-c-cpp@v2 | ||
- name: configure | ||
run: | | ||
mkdir _build && cd _build | ||
cmake ../ -DENABLE_STDCXX_SYNC=ON -DENABLE_UNITTESTS=ON -DENABLE_EXPERIMENTAL_BONDING=ON | ||
cmake ../ -DCMAKE_COMPILE_WARNING_AS_ERROR=ON -DENABLE_STDCXX_SYNC=ON -DENABLE_ENCRYPTION=ON -DENABLE_UNITTESTS=ON -DENABLE_BONDING=ON -DENABLE_TESTING=ON -DENABLE_EXAMPLES=ON -DENABLE_CODE_COVERAGE=ON | ||
- name: build | ||
run: cd _build && cmake --build ./ | ||
run: cd _build && build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build . | ||
- name: test | ||
run: cd _build && ctest --extra-verbose | ||
run: | | ||
cd _build && ctest --extra-verbose | ||
- name: codecov | ||
run: | | ||
source ./scripts/collect-gcov.sh | ||
bash <(curl -s https://codecov.io/bash) | ||
- name: Run SonarCloud Scan for C and C++ | ||
if: ${{ !github.event.pull_request.head.repo.fork }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
# Consult https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarscanner-cli/ for more information and options. | ||
run: sonar-scanner --define sonar.cfamily.build-wrapper-output=_build/"${{ env.BUILD_WRAPPER_OUT_DIR }}" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: iOS | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
cxxstdsync: [OFF, ON] | ||
|
||
name: iOS-cxxsync${{ matrix.cxxstdsync }} | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: configure | ||
run: | | ||
mkdir _build && cd _build | ||
cmake ../ -DENABLE_ENCRYPTION=OFF -DENABLE_STDCXX_SYNC=${{matrix.cxxstdsync}} -DENABLE_UNITTESTS=OFF -DENABLE_BONDING=ON --toolchain scripts/iOS.cmake | ||
- name: build | ||
run: cd _build && cmake --build ./ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: QEMU to run s390x-focal | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
Tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup multiarch/qemu-user-static | ||
run: | | ||
docker run --rm --privileged multiarch/qemu-user-static:register --reset | ||
- name: ubuntu-core:s390x-focal | ||
uses: docker://multiarch/ubuntu-core:s390x-focal | ||
with: | ||
args: > | ||
bash -c | ||
"uname -a && | ||
lscpu | grep Endian | ||
" | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: configure | ||
uses: docker://multiarch/ubuntu-core:s390x-focal | ||
with: | ||
args: > | ||
bash -c | ||
"apt-get -y update && | ||
export DEBIAN_FRONTEND=noninteractive && | ||
export TZ=Etc/UTC && | ||
apt-get -y install tzdata && | ||
uname -a && | ||
lscpu | grep Endian && | ||
apt-get -y install cmake g++ libssl-dev git && | ||
mkdir _build && cd _build && | ||
cmake ../ -DENABLE_ENCRYPTION=ON -DENABLE_UNITTESTS=ON -DENABLE_BONDING=ON -DENABLE_TESTING=ON -DENABLE_EXAMPLES=ON && | ||
cmake --build ./ && | ||
./test-srt -disable-ipv6" |
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
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
Oops, something went wrong.