Skip to content

Commit

Permalink
add run-cl-arduino.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ackPeng committed Dec 18, 2024
1 parent 4f34aaa commit 12d0000
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/run-cl-arduino.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
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 }}
4 changes: 4 additions & 0 deletions NfcTag.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#include "NfcTag.h"

void NfcTag::init() {
#ifdef ESP32
Wire.begin(4, 16, 400000U);
#else
Wire.begin();
#endif
}

void NfcTag::submitPassWd(byte* passWd) {
Expand Down

0 comments on commit 12d0000

Please sign in to comment.