File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 uses : actions/checkout@v4
3030
3131 - name : Clean build directory
32+ # Use bash even on Windows to ensure we start with a clean build directory.
3233 shell : bash
3334 run : |
3435 if [ -d "${{ github.workspace }}/build" ]; then
@@ -55,16 +56,25 @@ jobs:
5556 run : |
5657 cmake --build "${{ steps.build_dir.outputs.BUILD_DIR }}" --config ${{ matrix.build_type }}
5758
59+ - name : List build directory contents (for debugging)
60+ shell : bash
61+ run : |
62+ echo "Listing build directory contents:"
63+ ls -la "${{ steps.build_dir.outputs.BUILD_DIR }}"
64+
5865 - name : Run shuttle_system executable on Ubuntu
5966 if : ${{ matrix.os == 'ubuntu-latest' }}
6067 shell : bash
6168 run : |
6269 # Pipe input "4" to the interactive executable so it exits gracefully.
6370 echo "4" | "${{ steps.build_dir.outputs.BUILD_DIR }}/shuttle_system"
6471
65- - name : Run shuttle_system executable on Windows
72+ - name : Run shuttle_system executable on Windows (using PowerShell)
6673 if : ${{ matrix.os == 'windows-latest' }}
67- shell : bash
74+ shell : pwsh
6875 run : |
69- # Pipe input "4" to the interactive executable so it exits gracefully.
70- echo "4" | "${{ steps.build_dir.outputs.BUILD_DIR }}/shuttle_system.exe"
76+ Write-Output "Listing build directory contents for debugging:"
77+ Get-ChildItem -Path "${env:GITHUB_WORKSPACE}\build"
78+ Write-Output "Running executable:"
79+ # Pipe input "4" to the executable so it exits gracefully.
80+ "4" | & "${env:GITHUB_WORKSPACE}\build\shuttle_system.exe"
You can’t perform that action at this time.
0 commit comments