From 60423679ee965f801410f137f0bbfc800852dc9a Mon Sep 17 00:00:00 2001 From: Lestie Chizhevskaya Date: Sun, 28 Apr 2024 23:12:07 +1000 Subject: [PATCH 1/4] Auto compile arduino code --- .github/workflows/arduino.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/arduino.yml diff --git a/.github/workflows/arduino.yml b/.github/workflows/arduino.yml new file mode 100644 index 0000000..f286572 --- /dev/null +++ b/.github/workflows/arduino.yml @@ -0,0 +1,13 @@ +on: + push: + pull_request: + workflow_dispatch: + +jobs: + job: + runs-on: ubuntu-latest + steps: + - name: Compile Arduino Sketches + uses: arduino/compile-sketches@v1.1.0 + with: + fqbn: "arduino:avr:uno" From e60c5db83e888f740117af78dfe9453283335cf0 Mon Sep 17 00:00:00 2001 From: Lestie Chizhevskaya Date: Sun, 28 Apr 2024 23:19:53 +1000 Subject: [PATCH 2/4] Added paths to check for arudino code in --- .github/workflows/arduino.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/arduino.yml b/.github/workflows/arduino.yml index f286572..17a0ed0 100644 --- a/.github/workflows/arduino.yml +++ b/.github/workflows/arduino.yml @@ -11,3 +11,6 @@ jobs: uses: arduino/compile-sketches@v1.1.0 with: fqbn: "arduino:avr:uno" + sketch-paths: + "- /arduino" + From 32e81a3ec841def80aea08c2ccb12cf702d5f6e7 Mon Sep 17 00:00:00 2001 From: Lestie Chizhevskaya Date: Sun, 28 Apr 2024 23:22:41 +1000 Subject: [PATCH 3/4] Fixed issue with paths --- .github/workflows/arduino.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/arduino.yml b/.github/workflows/arduino.yml index 17a0ed0..bd99e63 100644 --- a/.github/workflows/arduino.yml +++ b/.github/workflows/arduino.yml @@ -1,7 +1,6 @@ on: push: pull_request: - workflow_dispatch: jobs: job: @@ -12,5 +11,5 @@ jobs: with: fqbn: "arduino:avr:uno" sketch-paths: - "- /arduino" + "- arduino" From 3c502bc3b35ef8768cf17a044abf8fb26456d679 Mon Sep 17 00:00:00 2001 From: Lestie Chizhevskaya Date: Sun, 28 Apr 2024 23:28:23 +1000 Subject: [PATCH 4/4] Made automation actually checkout the repo before trying to test it --- .github/workflows/arduino.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/arduino.yml b/.github/workflows/arduino.yml index bd99e63..884ff94 100644 --- a/.github/workflows/arduino.yml +++ b/.github/workflows/arduino.yml @@ -3,11 +3,11 @@ on: pull_request: jobs: - job: + compile-sketches: runs-on: ubuntu-latest steps: - - name: Compile Arduino Sketches - uses: arduino/compile-sketches@v1.1.0 + - uses: actions/checkout@v4.1.4 + - uses: arduino/compile-sketches@v1.1.0 with: fqbn: "arduino:avr:uno" sketch-paths: