forked from Bodmer/TFT_eSPI
-
Notifications
You must be signed in to change notification settings - Fork 13
141 lines (111 loc) · 7.14 KB
/
run-cl-arduino.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
name: Run Ci Arduino
on:
push:
pull_request:
repository_dispatch:
types: [trigger-workflow]
jobs:
ci-arduino:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout script repository
uses: actions/checkout@v4
with:
repository: Seeed-Studio/ci-arduino
path: ci
- name: Setup arduino cli
uses: arduino/[email protected]
- name: Create a depend.list file
run: |
# eg: echo "<repo>" >> depend.list
- name: Create a ignore.list file
run: |
# eg: echo "<path>,<fqbn>" >> ignore.list
# xiao m0 RAM is too small
echo "320x240/All_Free_Fonts_Demo,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list
echo "320x240/Cellular_Automata,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list
echo "480x320/Cellular_Automata,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list
# xiao m0 RAM is too small
echo "320x240/All_Free_Fonts_Demo,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list
echo "320x240/Cellular_Automata,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list
echo "480x320/Cellular_Automata,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list
# no Seeed_FS.h so can't compile
echo "SmoothFonts/Font_Demo_1,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list
echo "SmoothFonts/Font_Demo_1,Seeeduino:nrf52:xiaonRF52840" >> ignore.list
echo "SmoothFonts/Font_Demo_1,Seeeduino:nrf52:xiaonRF52840Sense" >> ignore.list
echo "SmoothFonts/Font_Demo_1,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list
echo "SmoothFonts/Font_Demo_1,rp2040:rp2040:seeed_xiao_rp2040" >> ignore.list
echo "SmoothFonts/Font_Demo_1,rp2040:rp2040:seeed_xiao_rp2350" >> ignore.list
echo "SmoothFonts/Font_Demo_1,esp32:esp32:XIAO_ESP32C3" >> ignore.list
echo "SmoothFonts/Font_Demo_1,esp32:esp32:XIAO_ESP32C6" >> ignore.list
echo "SmoothFonts/Font_Demo_1,esp32:esp32:XIAO_ESP32S3" >> ignore.list
echo "SmoothFonts/Font_Demo_2,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list
echo "SmoothFonts/Font_Demo_2,Seeeduino:nrf52:xiaonRF52840" >> ignore.list
echo "SmoothFonts/Font_Demo_2,Seeeduino:nrf52:xiaonRF52840Sense" >> ignore.list
echo "SmoothFonts/Font_Demo_2,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list
echo "SmoothFonts/Font_Demo_2,rp2040:rp2040:seeed_xiao_rp2040" >> ignore.list
echo "SmoothFonts/Font_Demo_2,rp2040:rp2040:seeed_xiao_rp2350" >> ignore.list
echo "SmoothFonts/Font_Demo_2,esp32:esp32:XIAO_ESP32C3" >> ignore.list
echo "SmoothFonts/Font_Demo_2,esp32:esp32:XIAO_ESP32C6" >> ignore.list
echo "SmoothFonts/Font_Demo_2,esp32:esp32:XIAO_ESP32S3" >> ignore.list
echo "SmoothFonts/Font_Demo_3,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list
echo "SmoothFonts/Font_Demo_3,Seeeduino:nrf52:xiaonRF52840" >> ignore.list
echo "SmoothFonts/Font_Demo_3,Seeeduino:nrf52:xiaonRF52840Sense" >> ignore.list
echo "SmoothFonts/Font_Demo_3,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list
echo "SmoothFonts/Font_Demo_3,rp2040:rp2040:seeed_xiao_rp2040" >> ignore.list
echo "SmoothFonts/Font_Demo_3,rp2040:rp2040:seeed_xiao_rp2350" >> ignore.list
echo "SmoothFonts/Font_Demo_3,esp32:esp32:XIAO_ESP32C3" >> ignore.list
echo "SmoothFonts/Font_Demo_3,esp32:esp32:XIAO_ESP32C6" >> ignore.list
echo "SmoothFonts/Font_Demo_3,esp32:esp32:XIAO_ESP32S3" >> ignore.list
echo "SmoothFonts/Font_Demo_4,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list
echo "SmoothFonts/Font_Demo_4,Seeeduino:nrf52:xiaonRF52840" >> ignore.list
echo "SmoothFonts/Font_Demo_4,Seeeduino:nrf52:xiaonRF52840Sense" >> ignore.list
echo "SmoothFonts/Font_Demo_4,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list
echo "SmoothFonts/Font_Demo_4,rp2040:rp2040:seeed_xiao_rp2040" >> ignore.list
echo "SmoothFonts/Font_Demo_4,rp2040:rp2040:seeed_xiao_rp2350" >> ignore.list
echo "SmoothFonts/Font_Demo_4,esp32:esp32:XIAO_ESP32C3" >> ignore.list
echo "SmoothFonts/Font_Demo_4,esp32:esp32:XIAO_ESP32C6" >> ignore.list
echo "SmoothFonts/Font_Demo_4,esp32:esp32:XIAO_ESP32S3" >> ignore.list
echo "SmoothFonts/Print_Smooth_Font,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list
echo "SmoothFonts/Print_Smooth_Font,Seeeduino:nrf52:xiaonRF52840" >> ignore.list
echo "SmoothFonts/Print_Smooth_Font,Seeeduino:nrf52:xiaonRF52840Sense" >> ignore.list
echo "SmoothFonts/Print_Smooth_Font,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list
echo "SmoothFonts/Print_Smooth_Font,rp2040:rp2040:seeed_xiao_rp2040" >> ignore.list
echo "SmoothFonts/Print_Smooth_Font,rp2040:rp2040:seeed_xiao_rp2350" >> ignore.list
echo "SmoothFonts/Print_Smooth_Font,esp32:esp32:XIAO_ESP32C3" >> ignore.list
echo "SmoothFonts/Print_Smooth_Font,esp32:esp32:XIAO_ESP32C6" >> ignore.list
echo "SmoothFonts/Print_Smooth_Font,esp32:esp32:XIAO_ESP32S3" >> ignore.list
echo "480x320/Touch_Controller_Demo,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list
echo "480x320/Touch_Controller_Demo,Seeeduino:nrf52:xiaonRF52840" >> ignore.list
echo "480x320/Touch_Controller_Demo,Seeeduino:nrf52:xiaonRF52840Sense" >> ignore.list
echo "480x320/Touch_Controller_Demo,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list
echo "480x320/Touch_Controller_Demo,rp2040:rp2040:seeed_xiao_rp2040" >> ignore.list
echo "480x320/Touch_Controller_Demo,rp2040:rp2040:seeed_xiao_rp2350" >> ignore.list
echo "480x320/Touch_Controller_Demo,esp32:esp32:XIAO_ESP32C3" >> ignore.list
echo "480x320/Touch_Controller_Demo,esp32:esp32:XIAO_ESP32C6" >> ignore.list
echo "480x320/Touch_Controller_Demo,esp32:esp32:XIAO_ESP32S3" >> ignore.list
echo "SmoothFonts/Unicode_test,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list
echo "SmoothFonts/Unicode_test,Seeeduino:nrf52:xiaonRF52840" >> ignore.list
echo "SmoothFonts/Unicode_test,Seeeduino:nrf52:xiaonRF52840Sense" >> ignore.list
echo "SmoothFonts/Unicode_test,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list
echo "SmoothFonts/Unicode_test,rp2040:rp2040:seeed_xiao_rp2040" >> ignore.list
echo "SmoothFonts/Unicode_test,rp2040:rp2040:seeed_xiao_rp2350" >> ignore.list
echo "SmoothFonts/Unicode_test,esp32:esp32:XIAO_ESP32C3" >> ignore.list
echo "SmoothFonts/Unicode_test,esp32:esp32:XIAO_ESP32C6" >> ignore.list
echo "SmoothFonts/Unicode_test,esp32:esp32:XIAO_ESP32S3" >> ignore.list
- name: Build sketch
run: |
./ci/tools/compile.sh
- name: Build result
run: |
cat build.log
if [ ${{ github.event_name }} == 'pull_request' ] && [ -f compile.failed ]; then
exit 1
fi
- name: Generate issue
if: ${{ github.event_name != 'pull_request' }}
run: ./ci/tools/issue.sh
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}