Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
[+] strip
Browse files Browse the repository at this point in the history
  • Loading branch information
Azathothas authored Feb 1, 2024
1 parent 5df578d commit 3dea38d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build_sudo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
sudo apt-get update -y
sudo apt-get install automake b3sum build-essential ca-certificates ccache lzip jq make musl musl-dev musl-tools p7zip-full wget -y
sudo apt-get install -y --no-install-recommends autoconf automake autopoint binutils bison build-essential ca-certificates flex file jq patch patchelf pkg-config python3-pip qemu-user-static wget xsltproc
#Install Build Dependencies (arm64)
sudo apt install binutils-aarch64-linux-gnu -y 2>/dev/null
sudo apt-get install "g++-arm-linux-gnueabi" "g++-arm-linux-gnueabihf" "g++-aarch64-linux-gnu" qemu-user-static -y 2>/dev/null
continue-on-error: true

- name: Install Addons
Expand Down Expand Up @@ -127,8 +130,8 @@ jobs:
#Compile
PATH="/usr/local/zig:/usr/local/zig/lib:/usr/local/zig/lib/include:$PATH" make CFLAGS="${CFLAGS} -I/usr/local/zig/lib/include -I/usr/local/zig/lib/libc/musl/include -I/usr/local/include -I/usr/include " LDFLAGS="${LDFLAGS} -L/usr/local/zig/lib -L/usr/local/lib -L/usr/lib -L/usr/local/lib/pkgconfig -static" --jobs="$(($(nproc)+1))" --keep-going
#Test
sudo strip "./src/sudo" && du -sh "./src/sudo"
sudo chown root "./src/sudo" ; sudo chmod 4755 "./src/sudo"
strip "./src/sudo" && du -sh "./src/sudo"
file "./src/sudo" && ldd "./src/sudo"
"./src/sudo" --version
#Move to releases
Expand Down Expand Up @@ -186,10 +189,10 @@ jobs:
#Compile
PATH="/usr/local/zig:/usr/local/zig/lib:/usr/local/zig/lib/include:$PATH" make CFLAGS="${CFLAGS} -I/usr/local/zig/lib/include -I/usr/local/zig/lib/libc/musl/include -I/usr/local/include -I/usr/include " LDFLAGS="${LDFLAGS} -L/usr/local/zig/lib -L/usr/local/lib -L/usr/lib -L/usr/local/lib/pkgconfig -static" --jobs="$(($(nproc)+1))" --keep-going
#Test
sudo aarch64-linux-gnu-objcopy --preserve-dates --verbose --strip-all "./src/sudo" && du -sh "./src/sudo"
sudo chown root "./src/sudo" ; sudo chmod 4755 "./src/sudo"
strip "./src/sudo" && du -sh "./src/sudo"
file "./src/sudo" && ldd "./src/sudo"
"./src/sudo" --version
qemu-aarch64-static "./src/sudo" --version
#Move to releases
mv "./src/sudo" "/tmp/releases/sudo_aarch64_arm64" ; popd > /dev/null 2>&1
#Tar
Expand Down

0 comments on commit 3dea38d

Please sign in to comment.