aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAmmar Faizi <ammarfaizi2@gmail.com>2021-09-11 09:30:45 +0700
committerAmmar Faizi <ammarfaizi2@gmail.com>2021-09-11 09:45:48 +0700
commitc4fc701966ea564d86d998cdc645f8fba7522fb6 (patch)
tree8a1897bb2f8539cecc29a9fbfcc51e0c74864c16 /.github
parent7154d88fb6f1eac943afb809d1612acf1ecb8fe2 (diff)
downloadliburing-c4fc701966ea564d86d998cdc645f8fba7522fb6.tar.gz
.github/workflows: add build_with_clang.yml
Add GitHub Actions build with Clang. Link: https://github.com/axboe/liburing/pull/425#issuecomment-914540396 Cc: Guillem Jover <guillem@hadrons.org> Signed-off-by: Ammar Faizi <ammarfaizi2@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_with_clang.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/build_with_clang.yml b/.github/workflows/build_with_clang.yml
new file mode 100644
index 0000000..9a1987b
--- /dev/null
+++ b/.github/workflows/build_with_clang.yml
@@ -0,0 +1,32 @@
+name: Build with Clang
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ main:
+ name: Build with Clang
+ strategy:
+ fail-fast: false
+
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install Toolchains
+ run: |
+ sudo apt install -y man git clang make && \
+ git --version && \
+ clang --version && \
+ clang++ --version && \
+ make --version;
+
+ - name: Build
+ run: |
+ make -j$(nproc) V=1 CFLAGS="-Werror" CPPFLAGS="-Werror" CXXFLAGS="-Werror" CC=clang CXX=clang++;
+
+ - name: Test install command
+ run: sudo make install;