Skip to content

Commit d1d920e

Browse files
authored
Update release-musl.yml
1 parent 964509d commit d1d920e

File tree

1 file changed

+26
-25
lines changed

1 file changed

+26
-25
lines changed

.github/workflows/release-musl.yml

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,41 @@
11
name: ReleaseMusl
22

33
on:
4-
workflow_dispatch: # Manually trigger the workflow
4+
workflow_dispatch:
55

66
jobs:
77
test-foundryup-windows:
88
runs-on: windows-latest
9-
steps:
10-
- name: Checkout repository
11-
uses: actions/checkout@v4
129

13-
- name: Test Foundryup Installation (Windows)
10+
steps:
11+
- name: Set up Windows Environment
1412
shell: bash
1513
run: |
16-
echo "=== Windows OS Detection ==="
17-
uname -s
18-
uname -m
19-
20-
echo "=== Downloading Foundryup ==="
21-
curl -L https://raw.githubusercontent.com/soul022/foundry-revive-testing/refs/heads/master/foundryup/install | bash
14+
echo "Setting up Windows environment..."
15+
echo "RUNNER_OS=${RUNNER_OS}"
16+
echo "USERPROFILE=$USERPROFILE"
17+
echo "PATH=$PATH"
2218
23-
echo "=== Setting Foundry PATH ==="
24-
export FOUNDARY_BIN_PATH="$USERPROFILE/.foundry/bin"
25-
export PATH="$FOUNDARY_BIN_PATH:$PATH"
26-
echo "$FOUNDARY_BIN_PATH" >> $GITHUB_PATH
19+
- name: Install Foundryup
20+
shell: bash
21+
run: |
22+
echo "Downloading foundryup installer..."
23+
curl -L https://raw.githubusercontent.com/soul022/foundry-revive-testing/refs/heads/master/foundryup/install -o foundryup-install.sh
24+
chmod +x foundryup-install.sh
25+
./foundryup-install.sh
2726
28-
echo "=== Debug: Checking Installation Directory ==="
29-
ls -lah "$FOUNDARY_BIN_PATH" || echo "❌ Foundry binaries directory not found!"
27+
# Ensure foundryup path is added
28+
echo "C:\Users\runneradmin\.config\foundry\bin" >> $GITHUB_PATH
29+
export PATH="C:\Users\runneradmin\.config\foundry\bin:$PATH"
3030
31-
echo "=== Running Foundryup ==="
32-
foundryup --install "stable" || echo "⚠️ Foundryup installation failed!"
31+
- name: Verify Foundryup Installation
32+
shell: bash
33+
run: |
34+
which foundryup || echo "⚠️ foundryup command not found"
35+
which forge || echo "⚠️ forge binary not found in PATH"
36+
which cast || echo "⚠️ cast binary not found in PATH"
3337
34-
echo "=== Verifying Forge & Cast Installation ==="
35-
which forge || echo " forge binary not found in PATH"
36-
which cast || echo " cast binary not found in PATH"
38+
foundryup --install stable || echo "⚠️ Foundryup installation failed"
39+
forge --version || echo "⚠️ forge command not available after install"
40+
cast --version || echo "⚠️ cast command not available after install"
3741
38-
echo "=== Checking Forge & Cast Versions ==="
39-
forge --version || echo "❌ forge command not available after install"
40-
cast --version || echo "❌ cast command not available after install"

0 commit comments

Comments
 (0)