diff options
author | Ammar Faizi <ammarfaizi2@gmail.com> | 2021-09-11 08:47:18 +0700 |
---|---|---|
committer | Ammar Faizi <ammarfaizi2@gmail.com> | 2021-09-11 09:45:13 +0700 |
commit | 7154d88fb6f1eac943afb809d1612acf1ecb8fe2 (patch) | |
tree | 8c5809763697f65c5e923fe1c819894b53a2ab2f /.github | |
parent | 8b087c441ed5f57e344b2ec1b26fcac42b42896a (diff) | |
download | liburing-7154d88fb6f1eac943afb809d1612acf1ecb8fe2.tar.gz |
.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 <guillem@hadrons.org>
Signed-off-by: Ammar Faizi <ammarfaizi2@gmail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build_with_gcc.yml | 32 |
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; |