Skip to content

Commit 86186cc

Browse files
committed
add run-cl-arduino.yml
1 parent f56460c commit 86186cc

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/run-cl-arduino.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+
uses: arduino/[email protected]
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 }}

0 commit comments

Comments
 (0)