-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add run-cl-arduino.yml && fix some spi build bug
- Loading branch information
Showing
2 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
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 | ||
# The dependent TensorFlowLite library can no longer be found | ||
echo "IMU_Classifier,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list | ||
echo "IMU_Classifier,Seeeduino:nrf52:xiaonRF52840" >> ignore.list | ||
echo "IMU_Classifier,Seeeduino:nrf52:xiaonRF52840Sense" >> ignore.list | ||
echo "IMU_Classifier,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list | ||
echo "IMU_Classifier,rp2040:rp2040:seeed_xiao_rp2040" >> ignore.list | ||
echo "IMU_Classifier,rp2040:rp2040:seeed_xiao_rp2350" >> ignore.list | ||
echo "IMU_Classifier,esp32:esp32:XIAO_ESP32C3" >> ignore.list | ||
echo "IMU_Classifier,esp32:esp32:XIAO_ESP32C6" >> ignore.list | ||
echo "IMU_Classifier,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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters