-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-all.sh
More file actions
executable file
Β·43 lines (36 loc) Β· 859 Bytes
/
build-all.sh
File metadata and controls
executable file
Β·43 lines (36 loc) Β· 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
TARGETS=(
"x86_64-unknown-linux-gnu"
"x86_64-pc-windows-gnu"
"x86_64-apple-darwin"
"aarch64-unknown-linux-gnu"
"aarch64-apple-darwin"
)
echo "Building for all targets..."
echo
SUCCESS=()
FAILED=()
for target in "${TARGETS[@]}"; do
echo "Building for $target..."
if cargo build --release --target "$target"; then
SUCCESS+=("$target")
echo "β $target - SUCCESS"
else
FAILED+=("$target")
echo "β $target - FAILED"
fi
echo
done
echo "=== BUILD SUMMARY ==="
echo "Successful builds (${#SUCCESS[@]}):"
for target in "${SUCCESS[@]}"; do
echo " β $target"
done
if [ ${#FAILED[@]} -gt 0 ]; then
echo "Failed builds (${#FAILED[@]}):"
for target in "${FAILED[@]}"; do
echo " β $target"
done
fi
echo
echo "Binaries available in target/*/release/"