This repository was archived by the owner on Dec 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,18 @@ jobs:
105105 - name : Strip binary (Linux)
106106 if : matrix.os == 'ubuntu-latest'
107107 run : |
108- llvm-strip target/${{ matrix.target }}/release/zinit || strip target/${{ matrix.target }}/release/zinit
108+ # Use cross-toolchain strip if available (provided by taiki-e/setup-cross-toolchain)
109+ if [[ -n "${STRIP:-}" ]]; then
110+ "$STRIP" "target/${{ matrix.target }}/release/zinit" || true
111+ # For aarch64-musl, prefer the target-specific strip if present
112+ elif [[ "${{ matrix.target }}" == "aarch64-unknown-linux-musl" ]] && command -v aarch64-unknown-linux-musl-strip >/dev/null 2>&1; then
113+ aarch64-unknown-linux-musl-strip "target/${{ matrix.target }}/release/zinit" || true
114+ # Fall back to llvm-strip if installed, else to system strip
115+ elif command -v llvm-strip >/dev/null 2>&1; then
116+ llvm-strip "target/${{ matrix.target }}/release/zinit" || strip "target/${{ matrix.target }}/release/zinit" || true
117+ else
118+ strip "target/${{ matrix.target }}/release/zinit" || true
119+ fi
109120
110121 - name : Strip binary (macOS)
111122 if : matrix.os == 'macos-latest'
You can’t perform that action at this time.
0 commit comments