From 4c24d928d42d535334cd3543dbb13f45ca267748 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Sat, 26 Aug 2023 02:33:33 +0200 Subject: [PATCH] btrfs-progs: ci: build static binaries on oldest supported x86-64 architecture As mentioned on https://wiki.tnonline.net/w/Btrfs/Statically_built_btrfs-progs the static binaries could be built on with flags so they're available on most x86-64 models (intel, AMD). Signed-off-by: David Sterba --- .github/workflows/artifacts-static-build.yml | 4 ++-- INSTALL | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/artifacts-static-build.yml b/.github/workflows/artifacts-static-build.yml index 7ba6c9b2..f54127fd 100644 --- a/.github/workflows/artifacts-static-build.yml +++ b/.github/workflows/artifacts-static-build.yml @@ -18,9 +18,9 @@ jobs: - name: Configure run: ./autogen.sh && ./configure - name: Make static - run: make V=1 static + run: make V=1 EXTRA_CFLAGS='-march=x86-64' static - name: Make box.static - run: make V=1 btrfs.box.static + run: make V=1 EXTRA_CFLAGS='-march=x86-64' btrfs.box.static - name: Strip binaries run: strip btrfs.static btrfs.box.static - name: Calculate SHA256 checksums diff --git a/INSTALL b/INSTALL index 8f8bf569..6ae89091 100644 --- a/INSTALL +++ b/INSTALL @@ -92,6 +92,9 @@ of the libraries. The resulting binaries have the '.static' suffix, the intermediate object files do not conflict with the normal (dynamic) build. +There are pre-built static binaries for download available at the latest +release (under Assets), https://github.com/kdave/btrfs-progs/releases . + All-in-one binary (busybox style) ---------------------------------