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:
|
jobs:
|
||||||
build-simple:
|
build-simple:
|
||||||
name: Simple build tests
|
name: Simple build tests
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
compiler: [ gcc, clang ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: sudo modprobe btrfs
|
- 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
|
- 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
|
- name: Configure
|
||||||
run: ./autogen.sh && ./configure
|
run: ./autogen.sh && CC=${{ matrix.compiler}} ./configure
|
||||||
- name: Documentation
|
- name: Documentation
|
||||||
run: make V=1 -C Documentation
|
run: make V=1 -C Documentation
|
||||||
- name: Make static
|
- 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
|
run: sudo docker run kdave/ci-musl-x86_64 ./test-build $GITHUB_REF_NAME --disable-documentation --disable-backtrace --disable-libudev
|
||||||
test-quick:
|
test-quick:
|
||||||
name: Quick tests
|
name: Quick tests
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
compiler: [ gcc, clang ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: sudo modprobe btrfs
|
- 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
|
- 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
|
- name: Configure
|
||||||
run: ./autogen.sh && ./configure --disable-documentation
|
run: ./autogen.sh && CC=${{ matrix.compiler }} ./configure --disable-documentation
|
||||||
- name: Make
|
- name: Make
|
||||||
run: make V=1
|
run: make V=1
|
||||||
- name: Test internal APIs
|
- name: Test internal APIs
|
||||||
|
|
Loading…
Reference in New Issue