Skip to content

Commit 2a270cf

Browse files
committed
Adding sample checks
1 parent 9e057c2 commit 2a270cf

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/samples.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,11 @@ jobs:
9292
9393
- name: Build samples (Windows)
9494
if: runner.os == 'Windows'
95-
shell: cmd
9695
run: |
97-
@echo on
98-
set PATH=%PATH%;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Strawberry\c\bin;C:\Program Files\NASM;D:\a\amazon-kinesis-video-streams-producer-c\amazon-kinesis-video-streams-producer-c\open-source\lib;D:\a\amazon-kinesis-video-streams-producer-c\amazon-kinesis-video-streams-producer-c\open-source\bin
96+
$env:Path += ';C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Strawberry\c\bin;C:\Program Files\NASM;${{ github.workspace }}\open-source\local\lib;${{ github.workspace }}\open-source\local\bin'
9997
git config --system core.longpaths true
100-
"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
101-
mkdir build
102-
cd build
103-
cmake -G "NMake Makefiles" -DBUILD_GSTREAMER_PLUGIN=ON -DPKG_CONFIG_EXECUTABLE="D:\\gstreamer\\1.0\\msvc_x86_64\\bin\\pkg-config.exe" ..
104-
nmake
98+
dir
99+
.github\build_windows.bat
105100
mkdir "%KVS_DEBUG_DUMP_DATA_FILE_DIR%"
106101
107102
- name: Configure AWS Credentials
@@ -129,11 +124,15 @@ jobs:
129124
KVS_DEBUG_DUMP_DATA_FILE_DIR: ${{ github.workspace }}/build/debug_output
130125
working-directory: ./build
131126
run: |
127+
# Equivalent to set -x
128+
Set-PSDebug -Trace 1
129+
132130
$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'
133131
134132
Invoke-WebRequest -Uri https://awsj-iot-handson.s3-ap-northeast-1.amazonaws.com/kvs-workshop/sample.mp4 -OutFile sample.mp4
135-
$exePath = Join-Path $PWD ${{ matrix.sample.name }}
136-
& $exePath.exe demo-stream-producer-cpp-${{ matrix.runner.id }}-ci-${{ matrix.sample.name }} ${{ matrix.sample.args }}
133+
dir
134+
$exePath = Join-Path $PWD ${{ matrix.sample.name }}.exe
135+
& $exePath demo-stream-producer-cpp-${{ matrix.runner.id }}-ci-${{ matrix.sample.name }} ${{ matrix.sample.args }}
137136
138137
- name: Verify MKV dump (Mac & Linux)
139138
if: runner.os == 'Linux' || runner.os == 'macOS'

0 commit comments

Comments
 (0)