Merge pull request #28 from niwciu/test #54
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: Run ModBus Unit Tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main, develop] | |
pull_request: | |
branches: [main, develop] | |
jobs: | |
template_test_running: | |
name: ModBus Test RUN on Win | |
runs-on: windows-latest | |
# strategy: | |
# matrix: | |
# os: [ubuntu-latest, windows-latest] | |
# runs-on: ${{matrix.os}} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4.1.1 | |
with: | |
submodules: recursive | |
- name: arm-none-eabi-gcc | |
uses: ryanwinter/arm-none-eabi-gcc@master | |
with: | |
release: '10-2021.10' | |
- name: Install Ninja | |
uses: seanmiddleditch/gha-setup-ninja@v3 | |
- name: Build binary | |
working-directory: test/modbus | |
run: | | |
mkdir out | |
cmake -Bout -GNinja | |
cmake --build out | |
- name: List files | |
working-directory: test/modbus/out | |
run: dir | |
- name: Run Modbus tests | |
working-directory: test/modbus/out | |
run: ./modbus_test.exe -v | |
# template_2_test_running: | |
# name: template_2 Test RUN | |
# runs-on: windows-latest | |
# # strategy: | |
# # matrix: | |
# # os: [ubuntu-latest, windows-latest] | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4.0.0 | |
# with: | |
# submodules: recursive | |
# - name: arm-none-eabi-gcc | |
# uses: ryanwinter/arm-none-eabi-gcc@master | |
# with: | |
# release: '10-2021.10' | |
# - name: Install Ninja | |
# uses: seanmiddleditch/gha-setup-ninja@v3 | |
# - name: Build binary | |
# working-directory: test/template_2 | |
# run: | | |
# mkdir out | |
# cmake -Bout -GNinja | |
# cmake --build out | |
# - name: List files | |
# working-directory: test/template_2/out | |
# run: dir | |
# - name: Run inputs tests | |
# working-directory: test/template_2/out | |
# run: ./template_2_test.exe -v |