Compare commits
2 Commits
280e681ba6
...
69386ba4da
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69386ba4da | ||
|
|
455014fdff |
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -6,7 +6,11 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
@@ -21,4 +25,5 @@ jobs:
|
||||
arduino-cli core install arduino:renesas_uno
|
||||
|
||||
- name: Compile Sketch (via Makefile)
|
||||
shell: bash
|
||||
run: make compile
|
||||
|
||||
12
Makefile
12
Makefile
@@ -1,14 +1,18 @@
|
||||
PORT ?= /dev/ttyACM0
|
||||
BOARD = arduino:renesas_uno:unor4wifi
|
||||
SKETCH = arduino_pong.ino
|
||||
|
||||
compile:
|
||||
arduino-cli compile -b arduino:renesas_uno:unor4wifi ./arduino_pong.ino
|
||||
arduino-cli compile -b $(BOARD) $(SKETCH)
|
||||
|
||||
upload:
|
||||
arduino-cli upload -b arduino:renesas_uno:unor4wifi -p /dev/ttyACM0
|
||||
arduino-cli upload -b $(BOARD) -p $(PORT)
|
||||
|
||||
upload_verbose:
|
||||
arduino-cli upload -b arduino:renesas_uno:unor4wifi -p /dev/ttyACM0 -v
|
||||
arduino-cli upload -b $(BOARD) -p $(PORT) -v
|
||||
|
||||
monitor:
|
||||
arduino-cli monitor -p /dev/ttyACM0
|
||||
arduino-cli monitor -p $(PORT)
|
||||
|
||||
run:
|
||||
make compile
|
||||
|
||||
Reference in New Issue
Block a user