btrfs-progs: ci: build static binaries only for latest release

The release-test branch is used for pre-release checks so don't pollute
the workflows list with unverified builds. The static build checks will
be done within the other workflows but no binaries need to be published.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2023-09-13 00:47:30 +02:00
parent 03f41ac508
commit d0bf814100
3 changed files with 8 additions and 1 deletions

View File

@ -7,7 +7,6 @@ run-name: Static binaries
on:
push:
branches:
- release-test
- master
jobs:
build:

View File

@ -22,6 +22,10 @@ jobs:
run: make V=1
- name: Musl build
run: sudo docker run kdave/ci-musl-x86_64 ./test-build $GITHUB_REF_NAME --disable-documentation --disable-backtrace --disable-libudev
- 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: Tests cli
run: sudo make TEST_LOG=dump test-cli
- name: Tests mkfs

View File

@ -25,6 +25,10 @@ jobs:
run: make V=1
# - name: Musl build
# run: sudo docker run kdave/ci-musl-x86_64 ./test-build $GITHUB_REF_NAME --disable-documentation --disable-backtrace --disable-libudev
- 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: Tests cli
run: sudo make TEST_LOG=dump test-cli
- name: Tests mkfs