File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-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+ - name : Setup arduino cli
24+ uses : arduino/setup-arduino-cli@v2.0.0
25+
26+ - name : Create a depend.list file
27+ run : |
28+ # eg: echo "<repo>" >> depend.list
29+
30+ - name : Create a ignore.list file
31+ run : |
32+ # eg: echo "<path>,<fqbn>" >> ignore.list
33+ echo "encoderTest,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list
34+
35+ - name : Build sketch
36+ run : ./ci/tools/compile.sh
37+
38+ - name : Build result
39+ run : |
40+ cat build.log
41+ if [ ${{ github.event_name }} == 'pull_request' ] && [ -f compile.failed ]; then
42+ exit 1
43+ fi
44+
45+ - name : Generate issue
46+ if : ${{ github.event_name != 'pull_request' }}
47+ run : ./ci/tools/issue.sh
48+ env :
49+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments