Skip to content

Commit 755000f

Browse files
committed
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 <[email protected]>
1 parent 216e1f5 commit 755000f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/artifacts-static-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
- name: Configure
1919
run: ./autogen.sh && ./configure
2020
- name: Make static
21-
run: make V=1 static
21+
run: make V=1 EXTRA_CFLAGS='-march=x86-64' static
2222
- name: Make box.static
23-
run: make V=1 btrfs.box.static
23+
run: make V=1 EXTRA_CFLAGS='-march=x86-64' btrfs.box.static
2424
- name: Strip binaries
2525
run: strip btrfs.static btrfs.box.static
2626
- name: Calculate SHA256 checksums

INSTALL

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ of the libraries.
9292
The resulting binaries have the '.static' suffix, the intermediate object
9393
files do not conflict with the normal (dynamic) build.
9494

95+
There are pre-built static binaries for download available at the latest
96+
release (under Assets), https://github.com/kdave/btrfs-progs/releases .
97+
9598

9699
All-in-one binary (busybox style)
97100
---------------------------------

0 commit comments

Comments
 (0)