Skip to content

Commit 9575844

Browse files
committed
btrfs-progs: ci: add configure option build tests
Pre-release build checks are not yet done in the CI, so add a workflow for that and only for the release-test branch as this usually does not break and can take a long time due to the number of options (even with ccache). Signed-off-by: David Sterba <[email protected]>
1 parent 05402d2 commit 9575844

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/extended-build.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Build tests of various combinations of configure options
2+
# (pre-release tests)
3+
4+
name: Extended build tests
5+
run-name: Extended build tests
6+
on:
7+
push:
8+
branches:
9+
- release-test
10+
jobs:
11+
build:
12+
runs-on: ubuntu-24.04
13+
steps:
14+
- uses: actions/checkout@v4
15+
- run: sudo apt-get update -qqq
16+
- 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 attr ccache
17+
- name: Run tests/build-tests.sh
18+
run: ./tests/build-tests.sh --ccache

tests/build-tests.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@ buildme() {
4242
}
4343

4444
buildme_common() {
45+
echo "::group::$CFLAGS configure $conf $@"
4546
make clean-all
46-
4747
./autogen.sh && CFLAGS="$CFLAGS" ./configure "$conf" $1 || die "configure not working with: $@"
4848
$make clean
4949
$make $opts $target
5050
check_result "$?"
5151
echo "VERDICT: $verdict"
52+
echo "::endgroup::"
5253
}
5354

5455
buildme_cflags() {

0 commit comments

Comments
 (0)