File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,22 +18,18 @@ jobs:
1818 - name : Build all targets
1919 run : |
2020 mkdir -p dist
21- targets="x86_64-linux aarch64-linux x86_64-macos aarch64-macos x86_64-windows"
21+ targets="x86_64-linux-musl aarch64-linux-musl x86_64-macos aarch64-macos x86_64-windows"
2222 for target in $targets; do
2323 echo "Building $target..."
24- zig build -Doptimize=ReleaseSafe -Dtarget=$target
24+ zig build -Doptimize=ReleaseSafe -Dstrip=true - Dtarget=$target
2525
26- # Windows binaries carry a .exe suffix
27- if [ "$target" = "x86_64-windows" ]; then
28- bin="zig-out/bin/depz.exe"
29- out="dist/depz-$target.exe"
30- else
31- bin="zig-out/bin/depz"
32- out="dist/depz-$target"
33- fi
26+ case "$target" in
27+ *windows*) bin="zig-out/bin/depz.exe"; out="depz-$target.exe" ;;
28+ *) bin="zig-out/bin/depz"; out="depz-$target" ;;
29+ esac
3430
35- mv "$bin" "$out"
36- sha256sum "$out" > "$out.sha256"
31+ mv "$bin" "dist/ $out"
32+ (cd dist && sha256sum "$out" > "$out.sha256")
3733 done
3834 ls -la dist/
3935
You can’t perform that action at this time.
0 commit comments