2023-04-13 14:33:19 +00:00
|
|
|
# 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:
|
|
|
|
- release-test
|
2023-06-15 11:41:52 +00:00
|
|
|
- master
|
2023-04-13 14:33:19 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- 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
|
|
|
|
- name: Make static
|
|
|
|
run: make V=1 static
|
|
|
|
- name: Make box.static
|
|
|
|
run: make V=1 btrfs.box.static
|
|
|
|
- name: Strip binaries
|
|
|
|
run: strip btrfs.static btrfs.box.static
|
2023-05-02 12:01:39 +00:00
|
|
|
- name: Calculate SHA256 checksums
|
|
|
|
run: |
|
|
|
|
sha256sum btrfs.static | tee btrfs.static.sha256
|
|
|
|
sha256sum btrfs.box.static | tee btrfs.box.static.sha256
|
2023-04-13 14:33:19 +00:00
|
|
|
- name: Save artifacts - btrfs.static
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: btrfs.static
|
|
|
|
path: btrfs.static
|
2023-05-02 12:01:39 +00:00
|
|
|
- name: Save artifacts - btrfs.static.sha256
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: btrfs.static.sha256
|
|
|
|
path: btrfs.static.sha256
|
2023-04-13 14:33:19 +00:00
|
|
|
- name: Save artifacts - btrfs.box.static
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: btrfs.box.static
|
|
|
|
path: btrfs.box.static
|
2023-05-02 12:01:39 +00:00
|
|
|
- name: Save artifacts - btrfs.box.static.sha256
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: btrfs.box.static.sha256
|
|
|
|
path: btrfs.box.static.sha256
|