Skip to content

Commit cff1912

Browse files
committed
Fix Windows BEFORE_ALL script - use folded multiline with && chaining
1 parent dc91aad commit cff1912

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

.github/workflows/python-release.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -121,21 +121,14 @@ jobs:
121121
CIBW_ENVIRONMENT_WINDOWS: >
122122
PATH="C:\\Users\\runneradmin\\.pecos\\llvm\\bin;$PATH"
123123
LLVM_SYS_140_PREFIX="C:\\Users\\runneradmin\\.pecos\\llvm"
124-
CIBW_BEFORE_ALL_WINDOWS: |
125-
echo "=== Installing LLVM using pecos-llvm-utils ==="
126-
rustup update
127-
echo "=== Running pecos-llvm install ==="
128-
cargo run --release -p pecos-llvm-utils --bin pecos-llvm -- install --force
129-
echo "=== Checking LLVM installation ==="
130-
if [ -d "C:\\Users\\runneradmin\\.pecos\\llvm" ]; then
131-
echo "LLVM directory exists"
132-
ls -la "C:\\Users\\runneradmin\\.pecos\\llvm"
133-
ls -la "C:\\Users\\runneradmin\\.pecos\\llvm\\bin" || echo "bin directory not found"
134-
else
135-
echo "ERROR: LLVM directory not found!"
136-
exit 1
137-
fi
138-
echo "=== Verifying LLVM_SYS_140_PREFIX ==="
124+
CIBW_BEFORE_ALL_WINDOWS: >
125+
echo "=== Installing LLVM using pecos-llvm-utils ===" &&
126+
rustup update &&
127+
echo "=== Running pecos-llvm install ===" &&
128+
cargo run --release -p pecos-llvm-utils --bin pecos-llvm -- install --force &&
129+
echo "=== Checking LLVM installation ===" &&
130+
(test -d "C:\\Users\\runneradmin\\.pecos\\llvm" && echo "LLVM directory exists" && ls -la "C:\\Users\\runneradmin\\.pecos\\llvm" && (ls -la "C:\\Users\\runneradmin\\.pecos\\llvm\\bin" || echo "bin directory not found")) || (echo "ERROR: LLVM directory not found!" && exit 1) &&
131+
echo "=== Verifying LLVM_SYS_140_PREFIX ===" &&
139132
echo "LLVM_SYS_140_PREFIX will be set to: C:\\Users\\runneradmin\\.pecos\\llvm"
140133
CIBW_BEFORE_BUILD_WINDOWS: "pip install delvewheel"
141134
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >

0 commit comments

Comments
 (0)