-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
While we do not have any non-GNU-compatible compilers in CI, disabling compiler extensions and enabling -pedantic should help us to keep specific compiler extensions at bay. Because this code base is still quite POSIX dependent, _POSIX_C_SOURCE is defined manually. Signed-off-by: Reto Schneider <code@reto-schneider.ch>
- Loading branch information
1 parent
152d6dd
commit 43fa4cd
Showing
9 changed files
with
127 additions
and
37 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: C Standards | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
compiler: ["clang-10", "gcc-10"] | ||
c_standard: ["99", "11"] | ||
c_extensions: ["ON", "OFF"] | ||
|
||
steps: | ||
- name: Checkout code including full history and submodules | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
|
||
- name: Install dependencies from APT repository | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libcunit1-dev wget unzip | ||
- name: Install CMake | ||
uses: lukka/get-cmake@latest | ||
|
||
- name: Install Ninja | ||
uses: seanmiddleditch/gha-setup-ninja@master | ||
|
||
- name: Build all binaries | ||
run: | | ||
tools/ci/run_ci.sh \ | ||
--clean \ | ||
--build \ | ||
--c-standard ${{ matrix.c_standard }} \ | ||
--c-extensions ${{ matrix.c_extensions }} | ||
env: | ||
CC: ${{ matrix.compiler }} |
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
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
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
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
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
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
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
Oops, something went wrong.