@@ -93,10 +93,12 @@ jobs:
9393 swift sdk list
9494
9595 - name : Build for x86_64-musl
96- run : swift build --swift-sdk x86_64-swift-linux-musl -v
97-
98- - name : Run tests (host)
99- run : swift test -v
96+ run : |
97+ swift build --swift-sdk x86_64-swift-linux-musl -v
98+ swift test --swift-sdk x86_64-swift-linux-musl -v
99+ # List contents to verify test binary location
100+ find .build/x86_64-swift-linux-musl -name "*Test*" -type f | sort
101+ ls -la .build/x86_64-swift-linux-musl/debug
100102
101103 - name : Upload build artifacts
102104 uses : actions/upload-artifact@v4
@@ -113,14 +115,32 @@ jobs:
113115 steps :
114116 - uses : actions/checkout@v4
115117
118+ - name : Install system dependencies
119+ run : apk add --no-cache bash
120+
116121 - name : Download compiled binaries
117122 uses : actions/download-artifact@v4
118123 with :
119124 name : alpine-binaries-6.1.0
120125 path : .build/debug
121126
122127 - name : Set permissions
123- run : chmod +x .build/debug/*
128+ shell : bash
129+ run : |
130+ chmod +x .build/debug/*
131+ ls -la .build/debug
124132
125133 - name : Run tests
126- run : .build/debug/MCPTests
134+ shell : bash
135+ run : |
136+ # Try to find and run the test executable
137+ TEST_EXEC=$(find .build/debug -name "*Test*" -type f | head -1)
138+ if [ -n "$TEST_EXEC" ]; then
139+ echo "Running test executable: $TEST_EXEC"
140+ chmod +x "$TEST_EXEC"
141+ $TEST_EXEC
142+ else
143+ echo "Test executable not found!"
144+ ls -la .build/debug
145+ exit 1
146+ fi
0 commit comments