aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
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;