Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Baresip SIP-call VideoSink #224

Open
wants to merge 170 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
1962c25
Adding re library
Vinayak-YB Mar 28, 2023
84565b0
Adding baresip
Vinayak-YB Mar 28, 2023
4d9e1e0
Baresip Integration initial commit
Vinayak-YB Apr 4, 2023
36e58d9
baresip video sink works
Vinayak-YB May 2, 2023
8b0b7a2
working checkpoint
Vinayak-YB May 4, 2023
bd81f1f
SIP calls working checkpoint
Vinayak-YB May 4, 2023
434ff78
Code cleaned and refactored
Vinayak-YB May 4, 2023
d2867b2
webrtc name changes and code refactor
Vinayak-YB May 4, 2023
95cb3e9
cmakelist changes
Vinayak-YB May 4, 2023
0353a0f
Merge branch 'main' of https://github.com/Apra-Labs/ApraPipes into ba…
Vinayak-YB May 4, 2023
b72f351
Linux x 86 test build changes
Vinayak-YB May 8, 2023
aebe779
removed sudo from build linux
Vinayak-YB May 8, 2023
2ba4cba
small dir change for linux build
Vinayak-YB May 8, 2023
b6b5ff5
DUMMY CHANGE
Vinayak-YB May 8, 2023
196daa9
added sudo to build files
Vinayak-YB May 9, 2023
6e9c332
Update build-test-lin.yml
yashrajsapra May 9, 2023
365f121
Checking sudo permissions
Vinayak-YB May 9, 2023
4a910d2
Merge branch 'baresip' of https://github.com/Apra-Labs/ApraPipes into…
Vinayak-YB May 9, 2023
9541821
WebRTC initial commit
Vinayak-YB May 11, 2023
f67b604
EnhancedRawImagePlanarMetadata (#225)
venkat0907 May 18, 2023
be0f49e
Changes Requested
May 26, 2023
9a71f4a
Overlay module and updated MotionExtractor module to use OverlayModul…
mohammedzakikochargi Jun 13, 2023
bea4c6c
build script sudo removed
Jun 14, 2023
c03e095
Adding re library
Vinayak-YB Mar 28, 2023
b2395ac
Adding baresip
Vinayak-YB Mar 28, 2023
541caf1
Baresip Integration initial commit
Vinayak-YB Apr 4, 2023
ab573cf
baresip video sink works
Vinayak-YB May 2, 2023
95def04
working checkpoint
Vinayak-YB May 4, 2023
1c01858
SIP calls working checkpoint
Vinayak-YB May 4, 2023
9f8ffb2
Code cleaned and refactored
Vinayak-YB May 4, 2023
5a16428
webrtc name changes and code refactor
Vinayak-YB May 4, 2023
1ab3ffd
cmakelist changes
Vinayak-YB May 4, 2023
83a29f5
Linux x 86 test build changes
Vinayak-YB May 8, 2023
8b1c5ae
removed sudo from build linux
Vinayak-YB May 8, 2023
12d106a
small dir change for linux build
Vinayak-YB May 8, 2023
08126be
DUMMY CHANGE
Vinayak-YB May 8, 2023
c2cebb5
added sudo to build files
Vinayak-YB May 9, 2023
38be6d3
Checking sudo permissions
Vinayak-YB May 9, 2023
e12b53a
Update build-test-lin.yml
yashrajsapra May 9, 2023
f4d5d26
WebRTC initial commit
Vinayak-YB May 11, 2023
6eb0b67
Changes Requested
May 26, 2023
6c0cc76
build script sudo removed
Jun 14, 2023
895bf8b
Merge branch 'baresip' of https://github.com/Apra-Labs/ApraPipes into…
Jun 14, 2023
ba79500
cmake merge issue resolve
Jun 14, 2023
1078260
Vcpkg mirror links fix (#235)
mohammedzakikochargi Jun 21, 2023
e258689
Added compute cap pre condition to test (#241)
mohammedzakikochargi Jun 28, 2023
c36edb8
added docker build instructions (#254)
venkat0907 Jul 3, 2023
bd172e5
Removing gstreamer dependency from aprapipes (#253)
Vinayak-YB Jul 4, 2023
c0838bf
Adding thirdparty libraries to vcpkg (#246)
Vinayak-YB Jul 5, 2023
79edaf2
fixed docker build (#256)
kumaakh Jul 8, 2023
2a53c89
Fixed the H264Decoder not terminating issue (#258)
mohammedzakikochargi Jul 11, 2023
948af77
disabled JpegL4Tm tests (#260)
mohammedzakikochargi Jul 11, 2023
a3d180f
vcpkg build fix (#259)
Vinayak-YB Jul 12, 2023
c9b51d3
Enhanced DMAllocator setMetadata (#239)
venkat0907 Jul 14, 2023
a3b4240
Color conv nppi (#232)
venkat0907 Jul 17, 2023
7c922f6
initial commit (#265)
Vinayak-YB Jul 17, 2023
a6f37c1
Enhanced playback compatibility: Mp4Writer-generated videos now compa…
mohammedzakikochargi Jul 17, 2023
e299e7b
Adding re library
Vinayak-YB Mar 28, 2023
42234f4
Adding baresip
Vinayak-YB Mar 28, 2023
ab27034
Baresip Integration initial commit
Vinayak-YB Apr 4, 2023
cc896e2
baresip video sink works
Vinayak-YB May 2, 2023
bbfadd6
working checkpoint
Vinayak-YB May 4, 2023
c011c63
SIP calls working checkpoint
Vinayak-YB May 4, 2023
cf6f192
Code cleaned and refactored
Vinayak-YB May 4, 2023
6241157
webrtc name changes and code refactor
Vinayak-YB May 4, 2023
9742166
cmakelist changes
Vinayak-YB May 4, 2023
f6a1cdb
Linux x 86 test build changes
Vinayak-YB May 8, 2023
3aa6615
removed sudo from build linux
Vinayak-YB May 8, 2023
87f82c3
small dir change for linux build
Vinayak-YB May 8, 2023
4009fa7
DUMMY CHANGE
Vinayak-YB May 8, 2023
63d4f62
added sudo to build files
Vinayak-YB May 9, 2023
a36b2a7
Checking sudo permissions
Vinayak-YB May 9, 2023
5d94715
Update build-test-lin.yml
yashrajsapra May 9, 2023
5e617b3
WebRTC initial commit
Vinayak-YB May 11, 2023
c707552
Changes Requested
May 26, 2023
907fc7a
build script sudo removed
Jun 14, 2023
b0e710c
Adding re library
Vinayak-YB Mar 28, 2023
598a446
Adding baresip
Vinayak-YB Mar 28, 2023
d1dcae4
Baresip Integration initial commit
Vinayak-YB Apr 4, 2023
d7b4296
baresip video sink works
Vinayak-YB May 2, 2023
5902b50
working checkpoint
Vinayak-YB May 4, 2023
83a070f
SIP calls working checkpoint
Vinayak-YB May 4, 2023
4e65134
webrtc name changes and code refactor
Vinayak-YB May 4, 2023
c9c1193
Linux x 86 test build changes
Vinayak-YB May 8, 2023
de51b1d
removed sudo from build linux
Vinayak-YB May 8, 2023
7a5f1e6
small dir change for linux build
Vinayak-YB May 8, 2023
6ca6a8b
DUMMY CHANGE
Vinayak-YB May 8, 2023
f26c259
added sudo to build files
Vinayak-YB May 9, 2023
5e9393b
Checking sudo permissions
Vinayak-YB May 9, 2023
2ba62a3
Update build-test-lin.yml
yashrajsapra May 9, 2023
e252aff
WebRTC initial commit
Vinayak-YB May 11, 2023
0888e4a
Changes Requested
May 26, 2023
473b26e
build script sudo removed
Jun 14, 2023
c163938
cmake merge issue resolve
Jun 14, 2023
b19d76f
Facelandmarks cv (#218)
venkat0907 Jul 18, 2023
348379f
Merge branch 'baresip' of https://github.com/Apra-Labs/ApraPipes into…
Jul 18, 2023
3aaa81c
updated URL in vcpkg update (#266)
mraduldubey Jul 19, 2023
7aa90fe
Updated NvTransform to do scale, crop and color transform (#176)
yashrajsapra Jul 19, 2023
00c23b9
EnhancedEglRenderer (#261)
venkat0907 Jul 19, 2023
c2f230e
Mp4ReaderSource module - version 2 (#268)
mohammedzakikochargi Jul 28, 2023
a70b01f
Affine transform module - support DMA/CUDA via NPPI and HOST via open…
venkat0907 Jul 31, 2023
0990cd8
TestSignalGenerator Module (#270)
Vinayak-YB Aug 1, 2023
c1e649e
Adding re library
Vinayak-YB Mar 28, 2023
0c57d69
Adding baresip
Vinayak-YB Mar 28, 2023
77924c7
Baresip Integration initial commit
Vinayak-YB Apr 4, 2023
62be00e
baresip video sink works
Vinayak-YB May 2, 2023
49b7293
working checkpoint
Vinayak-YB May 4, 2023
da71e04
SIP calls working checkpoint
Vinayak-YB May 4, 2023
c2eaebf
Code cleaned and refactored
Vinayak-YB May 4, 2023
0353278
webrtc name changes and code refactor
Vinayak-YB May 4, 2023
c6d5f0c
cmakelist changes
Vinayak-YB May 4, 2023
5638b8b
Linux x 86 test build changes
Vinayak-YB May 8, 2023
1719dd7
removed sudo from build linux
Vinayak-YB May 8, 2023
b560a78
small dir change for linux build
Vinayak-YB May 8, 2023
f42469d
DUMMY CHANGE
Vinayak-YB May 8, 2023
a1b4b12
added sudo to build files
Vinayak-YB May 9, 2023
bf0dc62
Checking sudo permissions
Vinayak-YB May 9, 2023
2fc5fbd
Update build-test-lin.yml
yashrajsapra May 9, 2023
698ba58
WebRTC initial commit
Vinayak-YB May 11, 2023
b0308e7
Changes Requested
May 26, 2023
f534ea1
build script sudo removed
Jun 14, 2023
7d11718
Adding re library
Vinayak-YB Mar 28, 2023
7c52d4c
Adding baresip
Vinayak-YB Mar 28, 2023
114fdc4
Baresip Integration initial commit
Vinayak-YB Apr 4, 2023
e399d6b
baresip video sink works
Vinayak-YB May 2, 2023
4bee21e
working checkpoint
Vinayak-YB May 4, 2023
4150401
SIP calls working checkpoint
Vinayak-YB May 4, 2023
9e0fffc
webrtc name changes and code refactor
Vinayak-YB May 4, 2023
8e01044
Linux x 86 test build changes
Vinayak-YB May 8, 2023
8188756
removed sudo from build linux
Vinayak-YB May 8, 2023
66d3927
small dir change for linux build
Vinayak-YB May 8, 2023
9eacd8e
DUMMY CHANGE
Vinayak-YB May 8, 2023
66b0327
added sudo to build files
Vinayak-YB May 9, 2023
306961b
Checking sudo permissions
Vinayak-YB May 9, 2023
be183c2
Update build-test-lin.yml
yashrajsapra May 9, 2023
911a684
WebRTC initial commit
Vinayak-YB May 11, 2023
cb9ca8a
Changes Requested
May 26, 2023
8939d53
build script sudo removed
Jun 14, 2023
4eacdf0
cmake merge issue resolve
Jun 14, 2023
20e106e
Adding re library
Vinayak-YB Mar 28, 2023
f7c47d0
Adding baresip
Vinayak-YB Mar 28, 2023
8320ac7
Baresip Integration initial commit
Vinayak-YB Apr 4, 2023
b4affec
baresip video sink works
Vinayak-YB May 2, 2023
be19816
working checkpoint
Vinayak-YB May 4, 2023
5a074de
SIP calls working checkpoint
Vinayak-YB May 4, 2023
3ebe2b9
Code cleaned and refactored
Vinayak-YB May 4, 2023
d327f3f
webrtc name changes and code refactor
Vinayak-YB May 4, 2023
3c2162b
cmakelist changes
Vinayak-YB May 4, 2023
57c2c37
Linux x 86 test build changes
Vinayak-YB May 8, 2023
ed4d350
removed sudo from build linux
Vinayak-YB May 8, 2023
16ea9cf
small dir change for linux build
Vinayak-YB May 8, 2023
fa2e8d4
DUMMY CHANGE
Vinayak-YB May 8, 2023
e0470be
added sudo to build files
Vinayak-YB May 9, 2023
fa95e50
Checking sudo permissions
Vinayak-YB May 9, 2023
58b0345
Update build-test-lin.yml
yashrajsapra May 9, 2023
8f2a28f
WebRTC initial commit
Vinayak-YB May 11, 2023
039756e
build script sudo removed
Jun 14, 2023
1e18d58
Adding re library
Vinayak-YB Mar 28, 2023
61b7d0b
Adding baresip
Vinayak-YB Mar 28, 2023
10e42ed
Baresip Integration initial commit
Vinayak-YB Apr 4, 2023
2466643
working checkpoint
Vinayak-YB May 4, 2023
edfa7d2
SIP calls working checkpoint
Vinayak-YB May 4, 2023
f537e7d
Code cleaned and refactored
Vinayak-YB May 4, 2023
68b65b9
webrtc name changes and code refactor
Vinayak-YB May 4, 2023
44a3755
Linux x 86 test build changes
Vinayak-YB May 8, 2023
534ddc2
Checking sudo permissions
Vinayak-YB May 9, 2023
115f10d
Merge branch 'baresip' of https://github.com/Apra-Labs/ApraPipes into…
Aug 10, 2023
5b04dee
cmakelist mod to custom build baresip files
Aug 11, 2023
9c4f306
small change to fix git checkout
Aug 11, 2023
94c7311
try fix for non trivial error
Aug 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .github/workflows/CI-Linux-ARM64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
is-selfhosted: true
cuda: 'ON'
prep-cmd: 'echo skipping builder prep as I can not sudo'
is-build-gst: false
cache-path: './none'
cmake-conf-cmd: 'export VCPKG_FORCE_SYSTEM_BINARIES=1 && cmake -B . -DENABLE_ARM64=ON ../base'
nProc: 6
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/CI-Linux-CUDA-Docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ env:
NOTE_TO_SELF: "environments can not be passed from here to reused workflows!"

jobs:
# linux-cuda-build-prep:
# this is in caching, not using it for now
# uses: ./.github/workflows/build-test-lin-container.yml
# with:
# runner: 'ubuntu-20.04'
# flav: 'Linux-Cuda'
# is-selfhosted: false
# cuda: 'ON'
# prep-cmd: 'echo skipping builder prep as I can not sudo'
# is-prep-phase: true
# cache-path: '/github/home/.cache/vcpkg/archives'
# nProc: 3
linux-cuda-build-no-test:
uses: ./.github/workflows/build-test-lin-container.yml
with:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/CI-Win-CUDA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
flav: 'Windows-cuda'
cuda: 'ON'
is-selfhosted: true
is-build-gst: false # part of vcpkg on windows
nProc: 8
nTestTimeoutMins: 20
win-cuda-publish:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/CI-Win-NoCUDA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
flav: 'Win-nocuda'
cuda: 'OFF'
is-selfhosted: false
is-build-gst: false # part of vcpkg on windows
is-prep-phase: true
nProc: 3
win-nocuda-build-test:
Expand All @@ -28,7 +27,6 @@ jobs:
flav: 'Win-nocuda'
is-selfhosted: false
cuda: 'OFF'
is-build-gst: false # part of vcpkg on windows
is-prep-phase: false
nProc: 3
win-nocuda-publish:
Expand Down
48 changes: 14 additions & 34 deletions .github/workflows/build-test-lin-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ on:
description: 'this workflow is called for a prep phase: it will split vcpkg install into 2 portions to cache and save'
default: false
required: false
is-build-gst:
type: boolean
description: 'should we build GStreamer? we dont build on windows and ARM_Linux.'
default: true
required: false
cache-path:
type: string
description: 'the folder which needs to be cached e.g. .cache/vcpkg'
Expand All @@ -77,9 +72,8 @@ jobs:
build:
env:
TEST_EXE: build/aprapipesut
LD_LIB_PATH: '${{github.workspace}}/thirdparty/gst-build/gst-build-1.16/outInstall/lib/x86_64-linux-gnu:${{github.workspace}}/thirdparty/Video_Codec_SDK_10.0.26/Lib/linux/stubs/x86_64:/usr/local/cuda-10.2/compat/:/usr/local/cuda/lib64:${LD_LIBRARY_PATH-}'
CMAKE_TC_FILE: '../vcpkg/scripts/buildsystems/vcpkg.cmake' # Note: naming this variable as CMAKE_TOOLCHAIN_FILE can cause havoc!!!
container: ghcr.io/kumaakh/aprapipes-build-x86-ubutu18.04-cuda:latest
container: ghcr.io/kumaakh/aprapipes-build-x86-ubutu18.04-cuda:last-good
defaults:
run:
shell: bash
Expand Down Expand Up @@ -110,12 +104,14 @@ jobs:
submodules: 'recursive'
lfs: true
fetch-depth: 0
- name: Checkout submodule

- name: List Submodules
run: |
git config --global --add safe.directory "*"
git submodule status > submodule_ver.txt
cat submodule_ver.txt
git rev-list --all --count

- name: Run VCPKG bootstrap
run: ${{ inputs.bootstrap-cmd }}

Expand All @@ -131,34 +127,21 @@ jobs:
run: .\fix-vcpkg-json.ps1 -removeOpenCV
shell: pwsh

- name: cache init on container build
if: ${{ job.container != null }} # we are running on a cloud hosted container... move the cache "initially"
run: |
cp -R /root/.cache /github/home/ || true
ls ${{ inputs.cache-path }} || true
ls thirdparty/gst-build/gst-build-1.16/outInstall || true
continue-on-error: true
# - name: cache init on container build
# if: ${{ job.container != null }} # we are running on a cloud hosted container... move the cache "initially"
# run: |
# cp -R /root/.cache /github/home/ || true
# ls ${{ inputs.cache-path }} || true
# continue-on-error: true

- name: Cache dependencies for fast cloud build
id: cache-all
uses: actions/cache@v3
with:
path: |
${{ inputs.cache-path }}
./thirdparty/gst-build/gst-build-1.16/outInstall/
./thirdparty/libmp4/build
key: ${{ inputs.flav }}-4-${{ hashFiles( 'base/vcpkg.json', 'vcpkg/baseline.json', 'submodule_ver.txt') }}
restore-keys: ${{ inputs.flav }}-

- name: Build Gstreamer On Linux_x64 when it is not cached
if: ${{ inputs.is-build-gst && steps.cache-all.outputs.cache-hit != 'true'}}
working-directory: ${{github.workspace}}/thirdparty
run: sh ./build_gstreamer.sh

- name: Build libmp4 when it is not cached
if: ${{ steps.cache-all.outputs.cache-hit != 'true' }}
working-directory: ${{github.workspace}}/thirdparty/libmp4
run: ./build.cmd

- name: Make build folder
run: mkdir -p build
Expand All @@ -176,17 +159,13 @@ jobs:

- name: List Test cases
if: ${{!inputs.is-prep-phase}}
env:
LD_LIBRARY_PATH: ${{env.LD_LIB_PATH}}
run: |
ldd ${{env.TEST_EXE}} | grep 'not found' || true
${{env.TEST_EXE}} --list_content > tests.txt
ldd ${{env.TEST_EXE}} | tee >(grep 'not found') || true
${{env.TEST_EXE}} --list_content > tests.txt || true
timeout-minutes: 1

- name: Run Tests
if: ${{!inputs.is-prep-phase && !inputs.skip-test}}
env:
LD_LIBRARY_PATH: ${{env.LD_LIB_PATH}}
run: |
${{env.TEST_EXE}} --log_format=JUNIT --log_sink=CI_test_result_${{inputs.flav}}.xml -p -l all || echo 'test execution returned error'
timeout-minutes: ${{ inputs.nTestTimeoutMins}}
Expand All @@ -199,6 +178,7 @@ jobs:
name: TestResults_${{ inputs.flav }}
path: |
CI_test_result_${{inputs.flav}}.xml
${{ github.workspace }}/data/SaveOrCompareFail/**


- name: Upload build logs
Expand Down
50 changes: 13 additions & 37 deletions .github/workflows/build-test-lin-wsl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ on:
description: 'this workflow is called for a prep phase: it will split vcpkg install into 2 portions to cache and save'
default: false
required: false
is-build-gst:
type: boolean
description: 'should we build GStreamer? we dont build on windows and ARM_Linux.'
default: true
required: false
cache-path:
type: string
description: 'the folder which needs to be cached e.g. .cache/vcpkg'
Expand All @@ -77,7 +72,6 @@ jobs:
build:
env:
TEST_EXE: build/aprapipesut
LD_LIB_PATH: './thirdparty/gst-build/gst-build-1.16/outInstall/lib/x86_64-linux-gnu:./thirdparty/Video_Codec_SDK_10.0.26/Lib/linux/stubs/x86_64:/usr/local/cuda-10.2/compat/:/usr/local/cuda/lib64:${LD_LIBRARY_PATH-}'
CMAKE_TC_FILE: '../vcpkg/scripts/buildsystems/vcpkg.cmake' # Note: naming this variable as CMAKE_TOOLCHAIN_FILE can cause havoc!!!
runs-on: ${{ inputs.runner }}
steps:
Expand Down Expand Up @@ -112,12 +106,14 @@ jobs:
submodules: 'recursive'
lfs: true
fetch-depth: 0
- name: Checkout submodule

- name: List Submodules
run: |
git config --global --add safe.directory "*"
git submodule status > submodule_ver.txt
cat submodule_ver.txt
git rev-list --all --count

- name: Run VCPKG bootstrap
run: ${{ inputs.bootstrap-cmd }}
shell: wsl-bash {0}
Expand All @@ -134,44 +130,25 @@ jobs:
run: .\fix-vcpkg-json.ps1 -removeOpenCV
shell: pwsh

- name: cache init on container build
if: ${{ job.container != null }} # we are running on a cloud hosted container... move the cache "initially"
run: |
cp -R /root/.cache /github/home/ || true
ls ${{ inputs.cache-path }} || true
ls thirdparty/gst-build/gst-build-1.16/outInstall || true
continue-on-error: true
# - name: cache init on container build
# if: ${{ job.container != null }} # we are running on a cloud hosted container... move the cache "initially"
# run: |
# cp -R /root/.cache /github/home/ || true
# ls ${{ inputs.cache-path }} || true
# continue-on-error: true

- name: Cache dependencies for fast cloud build
id: cache-all
uses: actions/cache@v3
with:
path: |
${{ inputs.cache-path }}
./thirdparty/gst-build/gst-build-1.16/outInstall/
./thirdparty/libmp4/build
key: ${{ inputs.flav }}-4-${{ hashFiles( 'base/vcpkg.json', 'vcpkg/baseline.json', 'submodule_ver.txt') }}
restore-keys: ${{ inputs.flav }}-

- name: On WSL prep the thirdparty build scripts
working-directory: ${{github.workspace}}/thirdparty
run: |
(dos2unix ./build_gstreamer.sh) || true
chmod a+x ./build_gstreamer.sh
(dos2unix libmp4/build.cmd) || true
chmod a+x libmp4/build.cmd
shell: wsl-bash {0}

- name: Build Gstreamer On Linux_x64 when it is not cached
if: ${{ inputs.is-build-gst && steps.cache-all.outputs.cache-hit != 'true'}}
working-directory: ${{github.workspace}}/thirdparty
run: sh ./build_gstreamer.sh
shell: wsl-bash {0}

- name: Build libmp4 when it is not cached
if: ${{ steps.cache-all.outputs.cache-hit != 'true' }}
working-directory: ${{github.workspace}}/thirdparty/libmp4
run: ./build.cmd
shell: wsl-bash {0}

- name: Make build folder
Expand All @@ -193,16 +170,14 @@ jobs:
- name: List Test cases
if: ${{!inputs.is-prep-phase}}
run: |
export LD_LIBRARY_PATH=${{env.LD_LIB_PATH}}
ldd ${{env.TEST_EXE}} | grep 'not found' || true
${{env.TEST_EXE}} --list_content > tests.txt
ldd ${{env.TEST_EXE}} | tee >(grep 'not found') || true
${{env.TEST_EXE}} --list_content > tests.txt || true
timeout-minutes: 1
shell: wsl-bash {0}

- name: Run Tests
if: ${{!inputs.is-prep-phase && !inputs.skip-test}}
run: |
export LD_LIBRARY_PATH=${{env.LD_LIB_PATH}}
${{env.TEST_EXE}} --log_format=JUNIT --log_sink=CI_test_result_${{inputs.flav}}.xml -p -l all || echo 'test execution returned error'
timeout-minutes: ${{ inputs.nTestTimeoutMins}}
shell: wsl-bash {0}
Expand All @@ -215,6 +190,7 @@ jobs:
name: TestResults_${{ inputs.flav }}
path: |
CI_test_result_${{inputs.flav}}.xml
${{ github.workspace }}/data/SaveOrCompareFail/**


- name: Upload build logs
Expand Down
46 changes: 13 additions & 33 deletions .github/workflows/build-test-lin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ on:
description: 'this workflow is called for a prep phase: it will split vcpkg install into 2 portions to cache and save'
default: false
required: false
is-build-gst:
type: boolean
description: 'should we build GStreamer? we dont build on windows and ARM_Linux.'
default: true
required: false
cache-path:
type: string
description: 'the folder which needs to be cached e.g. .cache/vcpkg'
Expand All @@ -77,7 +72,6 @@ jobs:
build:
env:
TEST_EXE: build/aprapipesut
LD_LIB_PATH: '${{github.workspace}}/thirdparty/gst-build/gst-build-1.16/outInstall/lib/x86_64-linux-gnu:${{github.workspace}}/thirdparty/Video_Codec_SDK_10.0.26/Lib/linux/stubs/x86_64:/usr/local/cuda-10.2/compat/:/usr/local/cuda/lib64:${LD_LIBRARY_PATH-}'
CMAKE_TC_FILE: '../vcpkg/scripts/buildsystems/vcpkg.cmake' # Note: naming this variable as CMAKE_TOOLCHAIN_FILE can cause havoc!!!
runs-on: ${{ inputs.runner }}
steps:
Expand Down Expand Up @@ -106,12 +100,14 @@ jobs:
submodules: 'recursive'
lfs: true
fetch-depth: 0
- name: Checkout submodule

- name: List Submodules
run: |
git config --global --add safe.directory "*"
git submodule status > submodule_ver.txt
cat submodule_ver.txt
git rev-list --all --count

- name: Run VCPKG bootstrap
run: ${{ inputs.bootstrap-cmd }}

Expand All @@ -127,34 +123,21 @@ jobs:
run: .\fix-vcpkg-json.ps1 -removeOpenCV
shell: pwsh

- name: cache init on container build
if: ${{ job.container != null }} # we are running on a cloud hosted container... move the cache "initially"
run: |
cp -R /root/.cache /github/home/ || true
ls ${{ inputs.cache-path }} || true
ls thirdparty/gst-build/gst-build-1.16/outInstall || true
continue-on-error: true
# - name: cache init on container build
# if: ${{ job.container != null }} # we are running on a cloud hosted container... move the cache "initially"
# run: |
# cp -R /root/.cache /github/home/ || true
# ls ${{ inputs.cache-path }} || true
# continue-on-error: true

- name: Cache dependencies for fast cloud build
id: cache-all
uses: actions/cache@v3
with:
path: |
${{ inputs.cache-path }}
./thirdparty/gst-build/gst-build-1.16/outInstall/
./thirdparty/libmp4/build
key: ${{ inputs.flav }}-4-${{ hashFiles( 'base/vcpkg.json', 'vcpkg/baseline.json', 'submodule_ver.txt') }}
restore-keys: ${{ inputs.flav }}-

- name: Build Gstreamer On Linux_x64 when it is not cached
if: ${{ inputs.is-build-gst && steps.cache-all.outputs.cache-hit != 'true'}}
working-directory: ${{github.workspace}}/thirdparty
run: sh ./build_gstreamer.sh

- name: Build libmp4 when it is not cached
if: ${{ steps.cache-all.outputs.cache-hit != 'true' }}
working-directory: ${{github.workspace}}/thirdparty/libmp4
run: ./build.cmd

- name: Make build folder
run: mkdir -p build
Expand All @@ -172,17 +155,13 @@ jobs:

- name: List Test cases
if: ${{!inputs.is-prep-phase}}
env:
LD_LIBRARY_PATH: ${{env.LD_LIB_PATH}}
run: |
ldd ${{env.TEST_EXE}} | grep 'not found' || true
${{env.TEST_EXE}} --list_content > tests.txt
ldd ${{env.TEST_EXE}} | tee >(grep 'not found') || true
${{env.TEST_EXE}} --list_content > tests.txt || true
timeout-minutes: 1

- name: Run Tests
if: ${{!inputs.is-prep-phase && !inputs.skip-test}}
env:
LD_LIBRARY_PATH: ${{env.LD_LIB_PATH}}
run: |
${{env.TEST_EXE}} --log_format=JUNIT --log_sink=CI_test_result_${{inputs.flav}}.xml -p -l all || echo 'test execution returned error'
timeout-minutes: ${{ inputs.nTestTimeoutMins}}
Expand All @@ -195,6 +174,7 @@ jobs:
name: TestResults_${{ inputs.flav }}
path: |
CI_test_result_${{inputs.flav}}.xml
${{ github.workspace }}/data/SaveOrCompareFail/**


- name: Upload build logs
Expand Down
Loading
Loading