-
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.
- Loading branch information
Showing
97 changed files
with
3,921 additions
and
2,053 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
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
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
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.