Only use -Werror in CI #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
on: | |
push: | |
branches: master | |
pull_request: | |
branches: master | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install cppcheck | |
run: sudo apt-get install -y cppcheck | |
- name: Run cppcheck | |
run: cppcheck --enable=all --inline-suppr --suppress=missingIncludeSystem --force *.c | |
- name: Build | |
run: CFLAGS=-Werror make | |
- name: Test | |
run: test "$(./qrcode -n -e 'Hello, World!' | ./qrcode -d)" = 'Hello, World!' |