-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
1,913 additions
and
857 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,32 @@ | ||
name: Build | ||
|
||
on: [push, pull_request ] | ||
paths: | ||
- 'src/**' | ||
- 'include/**' | ||
- 'tools/src/**' | ||
- 'Makefile' | ||
- '*.mk' | ||
- '.github/workflows/build.yml' | ||
|
||
jobs: | ||
build: | ||
name: Build libraries | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
CC: gcc | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build static library | ||
run: make static | ||
|
||
- name: Build shared library | ||
run: make shared | ||
|
||
- name: Generate CIO locator data | ||
run: make cio_file | ||
|
||
|
||
|
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,24 @@ | ||
name: cppcheck | ||
|
||
on: [push, pull_request ] | ||
paths: | ||
- 'src/**' | ||
- 'include/**' | ||
- 'Makefile' | ||
- '*.mk' | ||
- '.github/workflows/check.yml' | ||
|
||
jobs: | ||
|
||
cppcheck: | ||
name: Check source code | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
CC: gcc | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Run cppcheck | ||
run: make check |
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,29 @@ | ||
name: API documentation | ||
|
||
on: [push, pull_request ] | ||
paths: | ||
- 'src/**' | ||
- 'include/**' | ||
- 'css/**' | ||
- 'Doxyfile' | ||
- '.github/workflows/dox.yml' | ||
|
||
apidocs: | ||
name: Update API documentation | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
CC: gcc | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: About this workflow... | ||
run: | | ||
echo github.event_name = ${{ github.event_name }} | ||
echo github.repository_owner = ${{ github.repository_owner }} | ||
echo github.ref_name = ${{ github.ref_name }} | ||
- name: Run doxygen | ||
run: make dox | ||
|
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,38 @@ | ||
name: Test | ||
|
||
on: [push, pull_request ] | ||
paths: | ||
- 'src/**' | ||
- 'include/**' | ||
- 'test/src/**' | ||
- 'test/reference/**' | ||
- 'Makefile' | ||
- '*.mk' | ||
- '.github/workflows/test.yml' | ||
|
||
jobs: | ||
test: | ||
name: Test and coverage | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
CC: gcc | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Run regression tests | ||
run: make test | ||
|
||
- name: Generate coverage data | ||
run: make coverage | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
continue-on-error: true | ||
with: | ||
fail_ci_if_error: false | ||
flags: unittests | ||
name: codecov | ||
verbose: true | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
|
||
# =============================================================================== | ||
# Generic build targets and recipes. | ||
# You can include this in your Makefile | ||
# =============================================================================== | ||
|
||
|
||
# Regular object files | ||
obj/%.o: $(SRC)/%.c dep/%.d obj Makefile | ||
$(CC) -o $@ -c $(CFLAGS) $< | ||
|
||
# Create sub-directories for build targets | ||
dep obj lib bin apidoc: | ||
mkdir $@ | ||
|
||
# Remove intermediate files locally | ||
.PHONY: clean-local | ||
clean-local: | ||
rm -rf obj dep | ||
|
||
# Remove all locally built files, effectively restoring the repo to its pristine state | ||
.PHONY: distclean-local | ||
distclean-local: clean-local | ||
rm -rf bin lib apidoc | ||
|
||
# Remove intermediate files (general) | ||
.PHONY: clean | ||
clean: clean-local | ||
|
||
# Remove intermediate files (general) | ||
.PHONY: distclean | ||
distclean: distclean-local | ||
|
||
# Static code analysis using 'cppcheck' | ||
.PHONY: check | ||
check: | ||
@echo " [check]" | ||
@cppcheck -I$(INC) $(CHECKOPTS) src | ||
|
||
# Doxygen documentation (HTML and man pages) under apidocs/ | ||
.PHONY: dox | ||
dox: $(SRC) $(INC) README.md | apidoc | ||
@echo " [doxygen]" | ||
@doxygen | ||
|
||
# Automatic dependence on included header files. | ||
.PRECIOUS: dep/%.d | ||
dep/%.d: $(SRC)/%.c dep | ||
@echo " > $@" \ | ||
&& $(CC) -I$(INC) -MM -MG $< > $@.$$$$ \ | ||
&& sed 's|\w*\.o[ :]*| obj/&|g' < $@.$$$$ > $@; \ | ||
rm -f $@.$$$$ | ||
|
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,27 @@ | ||
codecov: | ||
require_ci_to_pass: no | ||
|
||
coverage: | ||
precision: 2 | ||
round: down | ||
status: | ||
patch: off | ||
project: | ||
default: | ||
target: auto | ||
threshold: 0.1% | ||
removed_code_behavior: adjust_base | ||
|
||
parsers: | ||
gcov: | ||
branch_detection: | ||
conditional: yes | ||
loop: yes | ||
method: no | ||
macro: no | ||
|
||
comment: | ||
layout: "reach,diff,flags,files,footer" | ||
behavior: default | ||
require_changes: no | ||
|
Oops, something went wrong.