From 86186cc09fa42344568e47ab3ee60f22cc1255dd Mon Sep 17 00:00:00 2001 From: ackPeng <1143590135@qq.com> Date: Tue, 24 Dec 2024 16:31:08 +0800 Subject: [PATCH] add run-cl-arduino.yml --- .github/workflows/run-cl-arduino.yml | 57 ++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/run-cl-arduino.yml diff --git a/.github/workflows/run-cl-arduino.yml b/.github/workflows/run-cl-arduino.yml new file mode 100644 index 0000000..6d39a90 --- /dev/null +++ b/.github/workflows/run-cl-arduino.yml @@ -0,0 +1,57 @@ +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/setup-arduino-cli@v2.0.0 + + - name: Create a depend.list file + run: | + # eg: echo "" >> depend.list + echo "arduino-libraries/SD" >> depend.list + + + + + + + + - name: Create a ignore.list file + run: | + # eg: echo "," >> 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 }} \ No newline at end of file