Skip to content

Commit

Permalink
Merge pull request #23 from niwciu/release/0.1.0
Browse files Browse the repository at this point in the history
Release v0.1.0
  • Loading branch information
niwciu authored Jan 22, 2024
2 parents c3e0048 + 9592fcb commit 28a4c2c
Show file tree
Hide file tree
Showing 604 changed files with 343,706 additions and 21,949 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/clang-format_check.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: clang-format Check
on:
name: Run clang-format Check
on:
workflow_dispatch:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
# on: workflow_dispatch
jobs:
formatting-check:
name: Formatting Check
Expand All @@ -18,7 +18,7 @@ jobs:
exclude: '(template|unity|hw_test)' # Exclude file paths containing "template" or "unity"

steps:
- uses: actions/[email protected].0
- uses: actions/[email protected].1
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/[email protected]
with:
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/run_cppcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Run cppcheck-action
on:
workflow_dispatch:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]

jobs:
cppcheck-annotations_scr:
name: cppcheck-annotations /src
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]

- name: Run cppcheck-annotation-action for src
uses: Konstantin343/[email protected]
with:
std: 'c99'
platform: 'unix64'
log-level: 'verbose'
sources: './src'
annotation-failures: 'warning'
# suppress: 'unusedFunction'
# annotation-level-default: 'error'
- name: Annotate lines with errors src
uses: yuzutech/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
title: 'Results of CppCheck src files'
input: 'annotations.json'
- name: Run cppcheck-annotation-action for tests
uses: Konstantin343/[email protected]
with:
std: 'c99'
platform: 'unix64'
log-level: 'verbose'
sources: './test/lcd_hd44780'
annotation-failures: 'warning'
# suppress: 'unusedFunction'
# annotation-level-default: 'error'
- name: Annotate lines with errors test_src
uses: yuzutech/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
title: 'Results of CppCheck test lcd_hd44780 files'
input: 'annotations.json'

32 changes: 8 additions & 24 deletions .github/workflows/run_lcd_hd44780_test .yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
name: Run LCD HD44780 Unit Tests
# on: [push, pull_request]
# on: workflow_dispatch
on:
on:
workflow_dispatch:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
LCD_HD44780_test_running_win:
name: LCD HD44780 Test RUN
name: LCD HD44780 Unit Test RUN on Win
runs-on: windows-latest
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4.0.0
uses: actions/checkout@v4.1.1
with:
submodules: recursive

Expand All @@ -29,20 +25,16 @@ jobs:
cmake -Bout -GNinja
cmake --build out
# - name: List files
# working-directory: test/lcd_hd44780/out
# run: dir

- name: Run LCD HD44780 tests
working-directory: test/lcd_hd44780/out
run: ./lcd_hd44780_test.exe -v

LCD_HD44780_AVR_test_running_win:
name: LCD HD44780 AVR Test RUN
name: LCD HD44780 for AVR Unit Test RUN on Win
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.0.0
uses: actions/checkout@v4.1.1
with:
submodules: recursive

Expand All @@ -56,20 +48,16 @@ jobs:
cmake -S ./avr_code_test -B out_avr -GNinja
cmake --build out_avr
# - name: List files
# working-directory: test/lcd_hd44780/out
# run: dir

- name: Run LCD HD44780 tests
working-directory: test/lcd_hd44780/out_avr
run: ./lcd_hd44780_test.exe -v

LCD_HD44780_test_running_ubuntu:
name: LCD HD44780 Test RUN Ubuntu
name: RUN LCD HD44780 Unit Test on Ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.0.0
uses: actions/checkout@v4.1.1
with:
submodules: recursive

Expand All @@ -83,10 +71,6 @@ jobs:
cmake -Bout -GNinja
cmake --build out
# - name: List files
# working-directory: test/lcd_hd44780/out
# run: dir

- name: Run LCD HD44780 tests
working-directory: test/lcd_hd44780/out
run: ./lcd_hd44780_test -v
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/run_lizard_lib_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Run Lizard Library Check
on:
workflow_dispatch:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
lizard:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Lizard Runner
uses: Uno-Takashi/Lizard-Runner@v3
with:
path: "./src"
CCN: "12"
Threshold: "nloc=30"
language: "cpp"
verbose: "true"
arguments: "4"


12 changes: 8 additions & 4 deletions .github/workflows/run_template_test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Run Unit Tests
# on: [push, pull_request]
on: workflow_dispatch
name: Run Template Unit Tests
on:
workflow_dispatch:
# push:
# branches: [main, develop]
# pull_request:
# branches: [main, develop]
jobs:
template_test_running:
name: Template Test RUN
Expand All @@ -10,7 +14,7 @@ jobs:
# os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4.0.0
uses: actions/checkout@v4.1.1
with:
submodules: recursive

Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/self_hosted_test_not_ready.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: self-hosted test
# on: [push, pull_request]
on: workflow_dispatch
on:
workflow_dispatch:
# push:
# branches: [main, develop]
# pull_request:
# branches: [main, develop]
jobs:
formatting_check_docker_runner:
name: Gcc_test
runs-on: test-runner
steps:
- name: Checkout
uses: actions/[email protected].0
uses: actions/[email protected].1

- name: test
run: arm-none-eabi-gcc --version
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ out_avr/
Release/
Debug/
Build/
.vscode/settings.json
.vscode/
# HW test ingnored files
.metadata/
.cproject
Expand All @@ -13,3 +13,4 @@ Build/




51 changes: 0 additions & 51 deletions .vscode/c_cpp_properties.json

This file was deleted.

24 changes: 0 additions & 24 deletions .vscode/launch.json

This file was deleted.

Loading

0 comments on commit 28a4c2c

Please sign in to comment.