@@ -228,18 +228,46 @@ jobs:
228228 ${{ steps.artifacts.outputs.file_name }}
229229 ${{ steps.man.outputs.foundry_man }}
230230
231- - name : Install Foundry Linux Musl AMD64
231+ - name : Test Foundryup Installation
232232 shell : bash
233233 run : |
234+ uname -s
235+ uname -m
236+
234237 curl -L https://raw.githubusercontent.com/soul022/foundry-revive-testing/refs/heads/master/foundryup/install | bash
235- echo "$HOME/.foundry/bin" >> $GITHUB_PATH
236-
237- - name : Test Foundry binaries
238- shell : bash
239- run : |
240- foundryup --install "${VERSION_NAME}"
241- forge --version
242- cast --version
238+
239+ # Explicitly debug directories immediately after installation
240+ echo "Checking ~/.foundry directory:"
241+ ls -alh ~/.foundry || echo "~/.foundry not created!"
242+
243+ echo "Checking ~/.foundry/bin directory:"
244+ ls -alh ~/.foundry/bin || echo "~/.foundry/bin not created!"
245+
246+ echo "Attempting to find 'foundryup' binary anywhere in home directory:"
247+ FOUND_PATH=$(find ~ -type f -name "foundryup" | head -n 1)
248+
249+ if [[ -z "$FOUND_PATH" ]]; then
250+ echo "foundryup binary NOT found anywhere! Check installer script."
251+ exit 1
252+ else
253+ echo "foundryup found at : $FOUND_PATH"
254+ fi
255+
256+ # Ensure the binary is executable
257+ chmod +x "$FOUND_PATH"
258+
259+ # Add the discovered path explicitly to GITHUB_PATH for subsequent steps
260+ BIN_DIR=$(dirname "$FOUND_PATH")
261+ echo "$BIN_DIR" >> $GITHUB_PATH
262+ echo "Path $BIN_DIR appended to GITHUB_PATH."
263+
264+ # Immediately verify foundryup and Foundry binaries
265+ echo "Verifying 'foundryup' command availability:"
266+ foundryup --install "${VERSION_NAME}" || "$FOUND_PATH" --install "${VERSION_NAME}"
267+
268+ # Check Forge and Cast
269+ forge --version || echo "forge command not available after install"
270+ cast --version || echo "cast command not available after install"
243271
244272
245273 cleanup :
0 commit comments