aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2023-12-04 18:50:29 +0100
committerDavid Sterba <dsterba@suse.com>2023-12-04 18:55:47 +0100
commitbc70e1287738f02f3ea4ceca755dc1aee2dae1e8 (patch)
tree83b4895bb67a256334da092a91bd4198a6629929
parent4ac630b5dc040c58cd7b5116d35181ee49a402d8 (diff)
downloadbtrfs-progs-bc70e1287738f02f3ea4ceca755dc1aee2dae1e8.tar.gz
btrfs-progs: ci: add clang to devel build tests
Add clang as compiler for the basic build checks in the CI. Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--.github/workflows/devel.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/devel.yml b/.github/workflows/devel.yml
index 1fd87609..728589ca 100644
--- a/.github/workflows/devel.yml
+++ b/.github/workflows/devel.yml
@@ -11,13 +11,16 @@ on:
jobs:
build-simple:
name: Simple build tests
+ strategy:
+ matrix:
+ compiler: [ gcc, clang ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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
- name: Configure
- run: ./autogen.sh && ./configure
+ run: ./autogen.sh && CC=${{ matrix.compiler}} ./configure
- name: Documentation
run: make V=1 -C Documentation
- name: Make static
@@ -32,13 +35,16 @@ jobs:
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-latest
steps:
- uses: actions/checkout@v3
- 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
+ run: ./autogen.sh && CC=${{ matrix.compiler }} ./configure --disable-documentation
- name: Make
run: make V=1
- name: Test internal APIs