-
Notifications
You must be signed in to change notification settings - Fork 1
109 lines (90 loc) · 2.65 KB
/
run_lcd_hd44780_test.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Run LCD HD44780 Unit Tests
on:
workflow_dispatch:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
LCD_HD44780_test_running_win:
name: LCD HD44780 Unit Test RUN on Win
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
with:
submodules: recursive
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@v3
- name: Build binary
working-directory: test/lcd_hd44780
run: |
mkdir out
cmake -Bout -GNinja
cmake --build out
- 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 for AVR Unit Test RUN on Win
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
with:
submodules: recursive
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@v3
- name: Build binary
working-directory: test/lcd_hd44780
run: |
mkdir out_avr
cmake -S ./avr_code_test -B out_avr -GNinja
cmake --build out_avr
- name: Run LCD HD44780 tests
working-directory: test/lcd_hd44780/out_avr
run: ./lcd_hd44780_test.exe -v
LCD_HD44780_test_running_ubuntu:
name: RUN LCD HD44780 Unit Test on Ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
with:
submodules: recursive
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@v3
- name: Build binary
working-directory: test/lcd_hd44780
run: |
mkdir out
cmake -Bout -GNinja
cmake --build out
- name: Run LCD HD44780 tests
working-directory: test/lcd_hd44780/out
run: ./lcd_hd44780_test -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: 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