Skip to content

Commit 70118dc

Browse files
author
DIBJT
committed
add a compile test for checkins
1 parent 4a495b2 commit 70118dc

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/compile-sketch.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Cross-compilation test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
10+
jobs:
11+
compile-sketch:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
fail-fast: false
16+
17+
matrix:
18+
board:
19+
# RP2350
20+
# https://github.com/arduino/ArduinoCore-mbed/blob/master/boards.txt
21+
- fqbn: rp2040:rp2040:sparkfun_iotredboard_rp2350
22+
# platforms: |
23+
name: rp2040:rp2040
24+
source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
25+
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v3
29+
30+
- name: Branch name
31+
run: echo running on branch ${GITHUB_REF##*/}
32+
33+
# Setup Arduino command line - install esp32 and all the libs flux needs
34+
- name: Arduino - Install and setup the Arduino CLI
35+
uses: arduino/setup-arduino-cli@v2
36+
37+
- name: Arduino - Start config file
38+
run: arduino-cli config init --additional-urls ${{ matrix.board.source-url}}
39+
40+
- name: Arduino - Update index
41+
run: arduino-cli core update-index
42+
43+
- name: Arduino - Install platform
44+
run: arduino-cli core install ${{ matrix.board.name}}
45+
46+
- name: Arduino - Install libraries
47+
run: |
48+
arduino-cli config set library.enable_unsafe_install true
49+
arduino-cli version
50+
arduino-cli lib install 'PicoDVI - Adafruit Fork'
51+
52+
- name: Compile Sketch
53+
run: arduino-cli compile --fqbn ${{ matrix.board.fqbn }} examples/1bit_double_buffer --library .
54+
55+
56+

0 commit comments

Comments
 (0)