@@ -237,38 +237,41 @@ jobs:
237237
238238 curl -L https://raw.githubusercontent.com/soul022/foundry-revive-testing/refs/heads/master/foundryup/install | bash
239239
240- # Explicitly debug directories immediately after installation
241- echo "Checking ~/. foundry directory:"
242- ls -alh ~/.foundry || echo "~ /.foundry not created! "
240+ # Ensure PATH is updated
241+ echo "/home/runner/.config/. foundry/bin" >> $GITHUB_PATH
242+ export PATH="/home/runner/.config /.foundry/bin:$PATH "
243243
244- echo "Checking ~/.foundry/bin directory:"
245- ls -alh ~/.foundry/bin || echo "~/.foundry/bin not created! "
244+ # Run the installation
245+ foundryup --install "stable "
246246
247- echo "Attempting to find 'foundryup' binary anywhere in home directory:"
248- FOUND_PATH=$(find ~ -type f -name "foundryup" | head -n 1)
247+ # Verify installation
248+ which forge || echo "❌ forge binary not found in PATH"
249+ which cast || echo "❌ cast binary not found in PATH"
249250
250- if [[ -z "$FOUND_PATH" ]]; then
251- echo "foundryup binary NOT found anywhere! Check installer script."
252- exit 1
253- else
254- echo "foundryup found at : $FOUND_PATH"
255- fi
251+ forge --version || echo "❌ forge command not available after install"
252+ cast --version || echo "❌ cast command not available after install"
253+
254+ - name : 🔥 Manually Extract and Verify Binaries (Fallback)
255+ shell : bash
256+ run : |
257+ mkdir -p ~/.config/.foundry/bin
258+ tar -xvzf ~/.config/.foundry/share/foundry_stable_linux_amd64.tar.gz -C ~/.config/.foundry/bin
256259
257- # Ensure the binary is executable
258- chmod +x "$FOUND_PATH"
260+ # Ensure binaries are executable
261+ chmod +x ~/.config/.foundry/bin/forge ~/.config/.foundry/bin/cast
259262
260- # Add the discovered path explicitly to GITHUB_PATH for subsequent steps
261- BIN_DIR=$(dirname "$FOUND_PATH")
262- echo "$BIN_DIR" >> $GITHUB_PATH
263- echo "Path $BIN_DIR appended to GITHUB_PATH."
263+ # Add to PATH
264+ echo "~/.config/.foundry/bin" >> $GITHUB_PATH
265+ export PATH="~/.config/.foundry/bin:$PATH"
264266
265- # Immediately verify foundryup and Foundry binaries
266- echo "Verifying 'foundryup' command availability: "
267- foundryup --install "${VERSION_NAME}" || "$FOUND_PATH" --install "${VERSION_NAME} "
267+ # Check if binaries are now found
268+ which forge || echo "❌ forge binary not found in PATH "
269+ which cast || echo "❌ cast binary not found in PATH "
268270
269- # Check Forge and Cast
270- forge --version || echo "forge command not available after install"
271- cast --version || echo "cast command not available after install"
271+ # Run version checks
272+ forge --version || echo "❌ forge command not available after install"
273+ cast --version || echo "❌ cast command not available after install"
274+
272275
273276
274277 cleanup :
0 commit comments