aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_with_gcc.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/build_with_gcc.yml b/.github/workflows/build_with_gcc.yml
new file mode 100644
index 0000000..63a99ce
--- /dev/null
+++ b/.github/workflows/build_with_gcc.yml
@@ -0,0 +1,32 @@
+name: Build with GCC
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ main:
+ name: Build with GCC
+ strategy:
+ fail-fast: false
+
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install Toolchains
+ run: |
+ sudo apt install -y man git gcc g++ make && \
+ git --version && \
+ gcc --version && \
+ g++ --version && \
+ make --version;
+
+ - name: Build
+ run: |
+ make -j$(nproc) V=1 CFLAGS="-Werror" CPPFLAGS="-Werror" CXXFLAGS="-Werror" CC=gcc CXX=g++;
+
+ - name: Test install command
+ run: sudo make install;