Skip to content

Commit

Permalink
added build configurations run for unit tests and library examples
Browse files Browse the repository at this point in the history
  • Loading branch information
niwciu committed Oct 24, 2024
1 parent bffe551 commit db389dc
Showing 1 changed file with 50 additions and 7 deletions.
57 changes: 50 additions & 7 deletions .github/workflows/CI_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,77 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4

- name: Get Ninja
uses: seanmiddleditch/gha-setup-ninja@master

- name: Build
working-directory: test/modbus
run: |
mkdir out
cmake -Bout -GNinja
cmake --build out
build_STM32G070RB:
name: Build STM32G070RB
build_STM32G070RB_modbus_master:
name: Build STM32G070RB ModBus Master
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- name: Install Arm GNU Toolchain (arm-none-eabi-gcc)
uses: carlosperate/arm-none-eabi-gcc-action@v1

- name: Get Ninja
uses: seanmiddleditch/gha-setup-ninja@master

- name: Build
working-directory: examples/STM32G071RB_MODBUS_MASTER
run: |
mkdir out
cmake -Bout -GNinja -DCMAKE_BUILD_TYPE=Debug
cmake --build out
build_STM32G070RB_modbus_slave:
name: Build STM32G070RB ModBus Slave
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- name: Install Arm GNU Toolchain (arm-none-eabi-gcc)
uses: carlosperate/arm-none-eabi-gcc-action@v1

- name: Get Ninja
uses: seanmiddleditch/gha-setup-ninja@master

- name: Build
working-directory: examples/STM32G071RB_MODBUS_SLAVE
run: |
mkdir out
cmake -Bout -GNinja -DCMAKE_BUILD_TYPE=Debug
cmake --build out
run_clang-format_check:
name: Run Clang-format Check
runs-on: ubuntu-latest
needs: [build_unit_tets,build_STM32G070RB]
needs: [build_unit_tets,build_STM32G070RB_modbus_master, build_STM32G070RB_modbus_slave]
steps:
- name: checkout
uses: actions/checkout@v4

run_unit_tests:
name: Run Unit Tests
runs-on: ubuntu-latest
needs: [build_unit_tets,build_STM32G070RB]
needs: [build_unit_tets,build_STM32G070RB_modbus_master, build_STM32G070RB_modbus_slave]
steps:
- name: checkout
uses: actions/checkout@v4

run_code_coverage_check:
name: Run Code Coverage Check
runs-on: ubuntu-latest
needs: [build_unit_tets,build_STM32G070RB]
needs: [build_unit_tets,build_STM32G070RB_modbus_master, build_STM32G070RB_modbus_slave]
steps:
- name: checkout
uses: actions/checkout@v4
Expand All @@ -49,15 +92,15 @@ jobs:
run_cppcheck:
name: Run CppCheck
runs-on: ubuntu-latest
needs: [build_unit_tets,build_STM32G070RB]
needs: [build_unit_tets,build_STM32G070RB_modbus_master, build_STM32G070RB_modbus_slave]
steps:
- name: checkout
uses: actions/checkout@v4

run_code_complexity_check:
name: Run Code Complexity Check
runs-on: ubuntu-latest
needs: [build_unit_tets,build_STM32G070RB]
needs: [build_unit_tets,build_STM32G070RB_modbus_master, build_STM32G070RB_modbus_slave]
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit db389dc

Please sign in to comment.