Introducing conformance with MISRA C:2012 amendments. #17
Workflow file for this run
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
name: Build Status | |
on: [push, pull_request] | |
jobs: | |
linux: | |
name: "Linux - ${{ matrix.compiler.display }}" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
compiler: | |
- { CC: gcc, display: GCC } | |
- { CC: clang, display: Clang } | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: CMake Build and Check | |
env: | |
CC: ${{ matrix.platform.CC }} | |
CFLAGS: ${{ matrix.platform.CFLAGS }} | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=Release | |
cmake --build build | |
ctest --output-on-failure --test-dir build | |
- name: Autotools Build | |
env: | |
CC: ${{ matrix.platform.CC }} | |
CFLAGS: ${{ matrix.platform.CFLAGS }} | |
run: | | |
./autogen.sh | |
./configure | |
make | |
make distcheck |