Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
ci: add an action to run ci-arduino
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesords committed Dec 19, 2024
1 parent d52d5e7 commit 9f13688
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/run-ci-arduino.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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
- 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 }}

0 comments on commit 9f13688

Please sign in to comment.