mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-07 05:34:59 -05:00
Add x64 configuration to Win32-MSVC demo (#1164)
Add x64 configuration to Win32-MSVC demo. This was originally contributed in this PR - #1139 --------- Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> Co-authored-by: José Simões <jose.simoes@eclo.solutions> Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
This commit is contained in:
parent
b0c6296cbf
commit
3d236bd83d
10 changed files with 76 additions and 101 deletions
36
.github/workflows/freertos_demos.yml
vendored
36
.github/workflows/freertos_demos.yml
vendored
|
|
@ -24,7 +24,7 @@ jobs:
|
|||
stepName: Checkout Repository
|
||||
name: ${{ env.stepName }}
|
||||
uses: actions/checkout@v3
|
||||
|
||||
|
||||
- env:
|
||||
stepName: Fetch Required Submodule
|
||||
name: ${{ env.stepName }}
|
||||
|
|
@ -62,7 +62,8 @@ jobs:
|
|||
$content = Get-Content -Path 'main.c' -Raw
|
||||
$newContent = $content -replace 'int\s+main(.*?)void(.*?)\r?\n\s*{', 'int main( void ){setvbuf( stdout, NULL, _IONBF, 0 );'
|
||||
$newContent | Set-Content -Path 'main.c'
|
||||
msbuild WIN32.sln -t:rebuild
|
||||
msbuild WIN32.sln /p:Platform=Win32 -t:rebuild
|
||||
msbuild WIN32.sln /p:Platform=x64 -t:rebuild
|
||||
$exitStatus = $?
|
||||
echo "::endgroup::"
|
||||
if($exitStatus -eq 1) {
|
||||
|
|
@ -73,11 +74,21 @@ jobs:
|
|||
}
|
||||
|
||||
- env:
|
||||
stepName: Run and monitor WIN32-MSVC Full Demo
|
||||
stepName: Run and monitor WIN32-MSVC Full Demo - Win32
|
||||
name: ${{ env.stepName }}
|
||||
uses: FreeRTOS/CI-CD-GitHub-Actions/executable-monitor@main
|
||||
with:
|
||||
exe-path: FreeRTOS/Demo/WIN32-MSVC/Debug/RTOSDemo.exe
|
||||
exe-path: FreeRTOS/Demo/WIN32-MSVC/Win32/Debug/RTOSDemo.exe
|
||||
timeout-seconds: 60
|
||||
success-line: "No errors - tick count"
|
||||
retry-attempts: 3
|
||||
|
||||
- env:
|
||||
stepName: Run and monitor WIN32-MSVC Full Demo - x64
|
||||
name: ${{ env.stepName }}
|
||||
uses: FreeRTOS/CI-CD-GitHub-Actions/executable-monitor@main
|
||||
with:
|
||||
exe-path: FreeRTOS/Demo/WIN32-MSVC/x64/Debug/RTOSDemo.exe
|
||||
timeout-seconds: 60
|
||||
success-line: "No errors - tick count"
|
||||
retry-attempts: 3
|
||||
|
|
@ -93,7 +104,8 @@ jobs:
|
|||
$content = Get-Content -Path 'main.c' -Raw
|
||||
$newContent = $content -replace '#define\s+mainCREATE_SIMPLE_BLINKY_DEMO_ONLY\s+0', '#define mainCREATE_SIMPLE_BLINKY_DEMO_ONLY 1'
|
||||
$newContent | Set-Content -Path 'main.c'
|
||||
msbuild WIN32.sln -t:rebuild
|
||||
msbuild WIN32.sln /p:Platform=Win32 -t:rebuild
|
||||
msbuild WIN32.sln /p:Platform=x64 -t:rebuild
|
||||
echo "::endgroup::"
|
||||
$exitStatus = $?
|
||||
if($exitStatus -eq 1) {
|
||||
|
|
@ -104,11 +116,21 @@ jobs:
|
|||
}
|
||||
|
||||
- env:
|
||||
stepName: Run and monitor WIN32-MSVC Blinky Demo
|
||||
stepName: Run and monitor WIN32-MSVC Blinky Demo - Win32
|
||||
name: ${{ env.stepName }}
|
||||
uses: FreeRTOS/CI-CD-GitHub-Actions/executable-monitor@main
|
||||
with:
|
||||
exe-path: FreeRTOS/Demo/WIN32-MSVC/Debug/RTOSDemo.exe
|
||||
exe-path: FreeRTOS/Demo/WIN32-MSVC/Win32/Debug/RTOSDemo.exe
|
||||
timeout-seconds: 60
|
||||
success-line: "Message received from software timer"
|
||||
retry-attempts: 3
|
||||
|
||||
- env:
|
||||
stepName: Run and monitor WIN32-MSVC Blinky Demo - x64
|
||||
name: ${{ env.stepName }}
|
||||
uses: FreeRTOS/CI-CD-GitHub-Actions/executable-monitor@main
|
||||
with:
|
||||
exe-path: FreeRTOS/Demo/WIN32-MSVC/x64/Debug/RTOSDemo.exe
|
||||
timeout-seconds: 60
|
||||
success-line: "Message received from software timer"
|
||||
retry-attempts: 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue