Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <geky@geky.net>2022-09-07 20:23:44 +0300
committerChristopher Haster <geky@geky.net>2022-09-07 20:34:52 +0300
commit23747628d58498fecce108df80b2d4dcbeb9071f (patch)
treea87d8709471da683f4ad69d513cab94ee9dd5251 /.github/workflows
parent40dba4a556e0d81dfbe64301a6aa4e18ceca896c (diff)
Added clang build step to CI
As found by dpgeorge, clang has slightly different warnings than GCC. There's really no cost to running clang as an extra build step to test for these.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index bc8bb0c..81f00c1 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -292,6 +292,27 @@ jobs:
- name: test-valgrind
run: make test TESTFLAGS+="-k --valgrind"
+ # test that compilation is warning free under clang
+ clang:
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2
+ - name: install
+ run: |
+ # need toml, also pip3 isn't installed by default?
+ sudo apt-get update -qq
+ sudo apt-get install -qq python3 python3-pip
+ sudo pip3 install toml
+ - name: install-clang
+ run: |
+ sudo apt-get update -qq
+ sudo apt-get install -qq clang
+ echo "CC=clang" >> $GITHUB_ENV
+ clang --version
+ # no reason to not test again
+ - name: test-clang
+ run: make test TESTFLAGS+="-k"
+
# self-host with littlefs-fuse for a fuzz-like test
fuse:
runs-on: ubuntu-20.04