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>
This commit is contained in:
parent
4ac630b5dc
commit
bc70e12877
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue