generated from niwciu/Embeded_Project_Template
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (67 loc) · 1.86 KB
/
run_modbus_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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