File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Run Ci Arduino
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ repository_dispatch :
7
+ types : [trigger-workflow]
8
+
9
+ jobs :
10
+ ci-arduino :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Checkout repository
15
+ uses : actions/checkout@v4
16
+
17
+ - name : Checkout script repository
18
+ uses : actions/checkout@v4
19
+ with :
20
+ repository : Seeed-Studio/ci-arduino
21
+ path : ci
22
+
23
+
24
+ - name : Setup arduino cli
25
+
26
+
27
+ - name : Create a depend.list file
28
+ run : |
29
+ # eg: echo "<repo>" >> depend.list
30
+ echo "arduino-libraries/SD" >> depend.list
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+ - name : Create a ignore.list file
39
+ run : |
40
+ # eg: echo "<path>,<fqbn>" >> ignore.list
41
+
42
+
43
+ - name : Build sketch
44
+ run : ./ci/tools/compile.sh
45
+
46
+ - name : Build result
47
+ run : |
48
+ cat build.log
49
+ if [ ${{ github.event_name }} == 'pull_request' ] && [ -f compile.failed ]; then
50
+ exit 1
51
+ fi
52
+
53
+ - name : Generate issue
54
+ if : ${{ github.event_name != 'pull_request' }}
55
+ run : ./ci/tools/issue.sh
56
+ env :
57
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments