Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
tmori committed Dec 14, 2024
1 parent 90ba78d commit d750821
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,17 @@ jobs:
- name: Build and Test hakoniwa-px4sim/hakoniwa on Windows
if: ${{ matrix.os == 'windows-latest' }}
shell: pwsh
run: |
cd hakoniwa
cmake -G "Visual Studio 17 2022" -A x64 .
cmake --build . --config Release
cd test
..\cmake-build\Release\hako-px4sim-test.exe
$testFile = Get-ChildItem -Path . -Recurse -Filter "*hako-px4sim-test*.exe" | Select-Object -First 1
if ($testFile) {
Write-Host "Found test binary: $($testFile.FullName)"
& $testFile.FullName
} else {
Write-Host "Test binary not found."
exit 1
}

0 comments on commit d750821

Please sign in to comment.