btrfs-progs/.github/workflows/devel.yml
David Sterba 935fdd1cdb btrfs-progs: ci: switch workflow runner image to ubuntu-24.04
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>
2024-06-17 21:52:48 +02:00

177 lines
6.3 KiB
YAML

# Workflow for testing branch 'devel'
# - build tests
# - various runtime tests
name: Devel build and tests
run-name: Devel build and tests
on:
push:
branches:
- devel
- 'ci/**'
- 'CI/**'
jobs:
build-simple:
name: Simple build tests
strategy:
matrix:
compiler: [ gcc, clang ]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: sudo modprobe btrfs
- 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 sphinx-rtd-theme-common python3-sphinx-rtd-theme
- name: Configure
run: ./autogen.sh && CC=${{ matrix.compiler}} ./configure
- name: Documentation
run: make V=1 -C 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
build-musl:
name: Build test on musl
runs-on: ubuntu-24.04
steps:
- name: Musl build
run: sudo docker run kdave/ci-musl-x86_64 ./test-build $GITHUB_REF_NAME --disable-documentation --disable-backtrace --disable-libudev
test-quick:
name: Quick tests
strategy:
matrix:
compiler: [ gcc, clang ]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: sudo modprobe btrfs
- run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq
- name: Configure
run: ./autogen.sh && CC=${{ matrix.compiler }} ./configure --disable-documentation
- name: Make
run: make V=1
- name: Test internal APIs
run: make test-api
- name: Libbtrfsutil test
run: make test-libbtrfsutil
- name: Libbtrfs build test
run: make library-test
- name: Libbtrfs build test (static)
run: make library-test.static
- name: Tests ioctl
run: make ioctl-test
- name: Tests hash (speed)
run: make hash-speedtest && ./hash-speedtest 1
- name: Tests hash (correctness)
run: make hash-vectest && ./hash-vectest
test-mkfs:
name: Test mkfs.btrfs
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: sudo modprobe btrfs
- run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq
- name: Configure
run: ./autogen.sh && ./configure --disable-documentation
- name: Make
run: make V=1
- name: Tests mkfs
run: sudo make TEST_LOG=dump test-mkfs
- name: Save logs to artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: mkfs-tests-results.txt
path: tests/mkfs-tests-results.txt
if-no-files-found: ignore
test-check:
name: Test btrfs check
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: sudo modprobe btrfs
- run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq
- name: Configure
run: ./autogen.sh && ./configure --disable-documentation
- name: Make
run: make V=1
- name: Tests check
run: sudo make TEST_LOG=dump test-check
- name: Tests check (lowmem)
run: sudo make TEST_LOG=dump test-check-lowmem
- name: Save logs to artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: fsck-tests-results.txt
path: tests/fsck-tests-results.txt
if-no-files-found: ignore
test-misc:
name: Test misc
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: sudo modprobe btrfs
- run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq
- name: Configure
run: ./autogen.sh && ./configure --disable-documentation
- name: Make
run: make V=1
- name: Tests misc
run: sudo make TEST_LOG=dump test-misc
- name: Save logs to artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: misc-tests-results.txt
path: tests/misc-tests-results.txt
if-no-files-found: ignore
test-convert:
name: Test btrfs-convert
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: sudo modprobe btrfs
- run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq
- name: Configure
run: ./autogen.sh && ./configure --disable-documentation
- name: Make
run: make V=1
- name: Tests convert
run: sudo make TEST_LOG=dump test-convert
- name: Save logs to artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: convert-tests-results.txt
path: tests/convert-tests-results.txt
if-no-files-found: ignore
test-other:
name: Test cli, fuzz
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: sudo modprobe btrfs
- run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq
- name: Configure
run: ./autogen.sh && ./configure --disable-documentation
- name: Make
run: make V=1
- name: Tests cli
run: sudo make TEST_LOG=dump test-cli
- name: Save logs to artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: cli-tests-results.txt
path: tests/cli-tests-results.txt
if-no-files-found: ignore
- name: Tests fuzz
run: sudo make TEST_LOG=dump test-fuzz
- name: Save logs to artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: fuzz-tests-results.txt
path: tests/fuzz-tests-results.txt
if-no-files-found: ignore