[test] Respect user's CFLAGS more than our own added ones; remove EXTRA_CFLAGS #28
Workflow file for this run
This file contains hidden or 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
| name: build # This name shows up in badge.svg | |
| on: | |
| push: # any branch | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build-gcc: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - run: make -C tests CFLAGS="-W -Wall -Wextra -Wswitch-default" | |
| - run: make -C tests clean ; make -C tests pedantic | |
| - run: make -C tests clean ; make -C tests pedantic CFLAGS=-DNO_DECLTYPE | |
| - run: make -C tests clean ; make -C tests cplusplus | |
| - run: make -C tests clean ; make -C tests cplusplus CFLAGS=-DNO_DECLTYPE | |
| build-clang: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| CC: clang | |
| CXX: clang++ | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - run: make -C tests CFLAGS="-W -Wall -Wextra -Wswitch-default" | |
| - run: make -C tests clean ; make -C tests pedantic | |
| - run: make -C tests clean ; make -C tests pedantic CFLAGS=-DNO_DECLTYPE | |
| - run: make -C tests clean ; make -C tests cplusplus | |
| - run: make -C tests clean ; make -C tests cplusplus CFLAGS=-DNO_DECLTYPE | |
| build-asciidoc: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - run: sudo apt-get update && sudo apt-get install asciidoc -y | |
| - run: make -C doc |