@@ -65,19 +65,82 @@ jobs:
6565 working-directory : ./build
6666 run : |
6767 export GST_PLUGIN_PATH=`pwd`
68- GST_DEBUG=4 ./tst/gstkvsplugintest
68+ GST_DEBUG=4 ./tst/gstkvsplugintest
6969
70- - name : Run the unit tests with valgrind
71- working-directory : ./build
70+ # - name: Run the unit tests with valgrind
71+ # working-directory: ./build
72+ # run: |
73+ # export GST_PLUGIN_PATH=`pwd`
74+ # valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes \
75+ # --verbose --log-file=valgrind-out.txt ./tst/gstkvsplugintest
76+ #
77+ # if grep -q "All heap blocks were freed -- no leaks are possible" valgrind-out.txt; then
78+ # echo "No memory leaks detected"
79+ # else
80+ # echo "Memory leaks detected. Review the valgrind output:"
81+ # cat valgrind-out.txt
82+ # exit 1
83+ # fi
84+
85+ windows-debug-dump-dir :
86+ runs-on : windows-2022
87+ env :
88+ AWS_KVS_LOG_LEVEL : 1
89+ permissions :
90+ id-token : write
91+ contents : read
92+ steps :
93+ - name : Clone repository
94+ uses : actions/checkout@v4
95+ - name : Move repository
7296 run : |
73- export GST_PLUGIN_PATH=`pwd`
74- valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes \
75- --verbose --log-file=valgrind-out.txt ./tst/gstkvsplugintest
97+ mkdir D:\producer
98+ Move-Item -Path "D:\a\amazon-kinesis-video-streams-producer-sdk-cpp\amazon-kinesis-video-streams-producer-sdk-cpp\*" -Destination "D:\producer"
99+ - name : Install dependencies
100+ run : |
101+ choco install nasm strawberryperl mkvtoolnix
102+ choco install gstreamer --version=1.22.8
103+ choco install gstreamer-devel --version=1.22.8
104+ - name : Build repository
105+ run : |
106+ $env:Path += ';C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Strawberry\c\bin;C:\Program Files\NASM;D:\producer\open-source\local\lib;D:\producer\open-source\local\bin'
107+ git config --system core.longpaths true
108+ cd D:\producer
109+ dir
110+ .github\build_windows.bat
111+ - name : Configure AWS Credentials
112+ uses : aws-actions/configure-aws-credentials@v4
113+ with :
114+ role-to-assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
115+ role-session-name : ${{ secrets.AWS_ROLE_SESSION_NAME }}
116+ aws-region : ${{ secrets.AWS_REGION }}
117+ role-duration-seconds : 10800
118+ - name : Run kvssink with dump dir
119+ env :
120+ GST_PLUGIN_PATH : D:\producer\build\
121+ KVS_DEBUG_DUMP_DATA_FILE_DIR : D:\producer\build\debug_output
122+ working-directory : D:\producer\build\
123+ run : |
124+ $env:Path += ';C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Strawberry\c\bin;C:\Program Files\NASM;D:\producer\open-source\local\lib;D:\producer\open-source\local\bin;D:\gstreamer\1.0\msvc_x86_64\bin'
125+
126+ # Create the debug directory (equivalent to mkdir -p)
127+ New-Item -ItemType Directory -Path "D:\producer\build\debug_output" -Force
128+
129+ # Stream for 15 seconds (450 frames @ 30 fps)
130+ gst-launch-1.0.exe videotestsrc is-live=true num-buffers=450 ! video/x-raw,framerate=30/1,width=640,height=480 ! videoconvert ! x264enc tune=zerolatency key-int-max=45 ! h264parse ! kvssink stream-name="demo-stream"
131+ - name : Verify MKV dump
132+ working-directory : D:\producer\build
133+ run : |
134+ $env:Path += ";C:\Program Files\MKVToolNix"
135+ $mkvFiles = Get-ChildItem -Path "D:\producer\build\debug_output" -Filter *.mkv
76136
77- if grep -q "All heap blocks were freed -- no leaks are possible" valgrind-out.txt; then
78- echo "No memory leaks detected"
79- else
80- echo "Memory leaks detected. Review the valgrind output:"
81- cat valgrind-out.txt
137+ if ($mkvFiles.Count -eq 0) {
138+ Write-Error "No MKV files found in D:\producer\build\debug_output"
82139 exit 1
83- fi
140+ }
141+
142+ # Run mkvinfo on each MKV file
143+ foreach ($file in $mkvFiles) {
144+ Write-Output "Verifying $($file.FullName) with mkvinfo:"
145+ mkvinfo.exe "$($file.FullName)"
146+ }
0 commit comments