mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-27 16:02:56 +00:00
f642ec86e6
There's an update to CI hosted runners, https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md - kernel 6.8 - e2fsprogs 1.47 - gcc 13.2 - clang 18.1.3 Switch the workflow files to use it as ubuntu-latest still points to the 22.04 version. The updated versions let us avoid workarounds due to old version if e2fsprogs. The musl 32bit build seems to fail so pin the version to the last one where it's known to work. Signed-off-by: David Sterba <dsterba@suse.com>
49 lines
1.7 KiB
YAML
49 lines
1.7 KiB
YAML
# Build static binaries (published as artifacts)
|
|
# - btrfs.static - the main tool
|
|
# - btrfs.box.static - all-in-one tool (functionality selected by file name)
|
|
|
|
name: Static binaries
|
|
run-name: Static binaries
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev
|
|
- name: Configure
|
|
run: ./autogen.sh && ./configure --disable-documentation
|
|
- name: Make static
|
|
run: make V=1 EXTRA_CFLAGS='-march=x86-64' static
|
|
- name: Make 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
|
|
run: |
|
|
sha256sum btrfs.static | tee btrfs.static.sha256
|
|
sha256sum btrfs.box.static | tee btrfs.box.static.sha256
|
|
- name: Save artifacts - btrfs.static
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: btrfs.static
|
|
path: btrfs.static
|
|
- name: Save artifacts - btrfs.static.sha256
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: btrfs.static.sha256
|
|
path: btrfs.static.sha256
|
|
- name: Save artifacts - btrfs.box.static
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: btrfs.box.static
|
|
path: btrfs.box.static
|
|
- name: Save artifacts - btrfs.box.static.sha256
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: btrfs.box.static.sha256
|
|
path: btrfs.box.static.sha256
|