Update CI so that warnings cause build failures

This commit is contained in:
Madelyn Olson 2020-10-19 17:26:57 -07:00 committed by Madelyn Olson
parent 9824fe3e39
commit 4d1120f5fd

View File

@ -9,8 +9,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: make - name: make
# build with TLS just for compilatoin coverage # Fail build if there are warnings
run: make BUILD_TLS=yes # build with TLS just for compilation coverage
run: make REDIS_CFLAGS='-Werror' BUILD_TLS=yes
- name: test - name: test
run: | run: |
sudo apt-get install tcl8.5 sudo apt-get install tcl8.5
@ -30,7 +31,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: make - name: make
run: make run: make REDIS_CFLAGS='-Werror'
build-32bit: build-32bit:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -39,14 +40,14 @@ jobs:
- name: make - name: make
run: | run: |
sudo apt-get update && sudo apt-get install libc6-dev-i386 sudo apt-get update && sudo apt-get install libc6-dev-i386
make 32bit make REDIS_CFLAGS='-Werror' 32bit
build-libc-malloc: build-libc-malloc:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: make - name: make
run: make MALLOC=libc run: make REDIS_CFLAGS='-Werror' MALLOC=libc
build-centos7-jemalloc: build-centos7-jemalloc:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -56,7 +57,7 @@ jobs:
- name: make - name: make
run: | run: |
yum -y install gcc make yum -y install gcc make
make make REDIS_CFLAGS='-Werror'
build-centos6-jemalloc: build-centos6-jemalloc:
runs-on: ubuntu-latest runs-on: ubuntu-latest