Skip to content

Commit

Permalink
Adding sample checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sirknightj committed Feb 6, 2025
1 parent 2a270cf commit 93735c4
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,13 @@ jobs:
- name: Build samples (Windows)
if: runner.os == 'Windows'
run: |
$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'
$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'
mkdir D:\producer
Move-Item -Path "D:\a\amazon-kinesis-video-streams-producer-sdk-cpp\amazon-kinesis-video-streams-producer-sdk-cpp\*" -Destination "D:\producer"
cd D:\producer
git config --system core.longpaths true
dir
.github\build_windows.bat
mkdir "%KVS_DEBUG_DUMP_DATA_FILE_DIR%"
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -120,15 +122,17 @@ jobs:
- name: Run ${{ matrix.sample.name }} (Windows)
if: runner.os == 'Windows'
env:
GST_PLUGIN_PATH: ${{ github.workspace }}/build
KVS_DEBUG_DUMP_DATA_FILE_DIR: ${{ github.workspace }}/build/debug_output
working-directory: ./build
GST_PLUGIN_PATH: D:\producer\build
KVS_DEBUG_DUMP_DATA_FILE_DIR: D:\producer\debug_output
working-directory: D:\producer\build
run: |
# Equivalent to set -x
Set-PSDebug -Trace 1
$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'
mkdir D:\producer\debug_output
Invoke-WebRequest -Uri https://awsj-iot-handson.s3-ap-northeast-1.amazonaws.com/kvs-workshop/sample.mp4 -OutFile sample.mp4
dir
$exePath = Join-Path $PWD ${{ matrix.sample.name }}.exe
Expand All @@ -153,13 +157,13 @@ jobs:
done
shell: bash

- name: Verify MKV dump
- name: Verify MKV dump (Windows)
if: runner.os == 'Windows'
working-directory: D:\producer\build
run: |
$env:Path += ";C:\Program Files\MKVToolNix"
dir debug_output
$mkvFiles = Get-ChildItem -Path "D:\producer\build\debug_output" -Filter *.mkv
dir D:\producer\debug_output
$mkvFiles = Get-ChildItem -Path "D:\producer\debug_output" -Filter *.mkv
if ($mkvFiles.Count -eq 0) {
Write-Error "No MKV files found in D:\producer\build\debug_output"
exit 1
Expand Down

0 comments on commit 93735c4

Please sign in to comment.