From 7154d88fb6f1eac943afb809d1612acf1ecb8fe2 Mon Sep 17 00:00:00 2001 From: Ammar Faizi Date: Sat, 11 Sep 2021 08:47:18 +0700 Subject: .github/workflows: add build_with_gcc.yml Add GitHub Actions build with GCC. Link: https://github.com/axboe/liburing/pull/425#issuecomment-914540396 Cc: Guillem Jover Signed-off-by: Ammar Faizi --- .github/workflows/build_with_gcc.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build_with_gcc.yml (limited to '.github') 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; -- cgit v1.2.3