@@ -91,10 +91,12 @@ jobs:
91
91
swift sdk list
92
92
93
93
- name : Build for x86_64-musl
94
- run : swift build --swift-sdk x86_64-swift-linux-musl -v
95
-
96
- - name : Run tests (host)
97
- run : swift test -v
94
+ run : |
95
+ swift build --swift-sdk x86_64-swift-linux-musl -v
96
+ swift test --swift-sdk x86_64-swift-linux-musl --build-tests-only -v
97
+ # List contents to verify test binary location
98
+ find .build/x86_64-swift-linux-musl -name "*Test*" -type f | sort
99
+ ls -la .build/x86_64-swift-linux-musl/debug
98
100
99
101
- name : Upload build artifacts
100
102
uses : actions/upload-artifact@v4
@@ -110,14 +112,32 @@ jobs:
110
112
steps :
111
113
- uses : actions/checkout@v4
112
114
115
+ - name : Install system dependencies
116
+ run : apk add --no-cache bash
117
+
113
118
- name : Download compiled binaries
114
119
uses : actions/download-artifact@v4
115
120
with :
116
121
name : alpine-binaries-6.1.0
117
122
path : .build/debug
118
123
119
124
- name : Set permissions
120
- run : chmod +x .build/debug/*
125
+ shell : bash
126
+ run : |
127
+ chmod +x .build/debug/*
128
+ ls -la .build/debug
121
129
122
130
- name : Run tests
123
- run : .build/debug/MCPTests
131
+ shell : bash
132
+ run : |
133
+ # Try to find and run the test executable
134
+ TEST_EXEC=$(find .build/debug -name "*Test*" -type f | head -1)
135
+ if [ -n "$TEST_EXEC" ]; then
136
+ echo "Running test executable: $TEST_EXEC"
137
+ chmod +x "$TEST_EXEC"
138
+ $TEST_EXEC
139
+ else
140
+ echo "Test executable not found!"
141
+ ls -la .build/debug
142
+ exit 1
143
+ fi
0 commit comments