Skip to content

Commit 7337ead

Browse files
committed
ci: update cmake-multi-platform.yml
1 parent 1d6a551 commit 7337ead

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/cmake-multi-platform.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
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"

0 commit comments

Comments
 (0)