forked from sekigon-gonnoc/Pico-PIO-USB
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.48 KB
/
build_arduino.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Build Arduino
on:
pull_request:
push:
release:
types:
- created
jobs:
build:
strategy:
fail-fast: false
matrix:
board:
# Alphabetical order
- 'rpipico'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Arduino CLI
run: |
# make all our directories we need for files and libraries
mkdir $HOME/.arduino15
mkdir $HOME/.arduino15/packages
mkdir $HOME/Arduino
mkdir $HOME/Arduino/libraries
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
echo $GITHUB_WORKSPACE/bin >> $GITHUB_PATH
- name: Install BSP and Libraries
env:
BSP_URL: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
run: |
arduino-cli config init
arduino-cli core update-index
arduino-cli core update-index --additional-urls $BSP_URL
arduino-cli core install rp2040:rp2040 --additional-urls $BSP_URL
arduino-cli lib install "Adafruit TinyUSB Library"
# symlink our to libraries folder
ln -s $GITHUB_WORKSPACE $HOME/Arduino/libraries/
# Library summary
arduino-cli lib list
#- name: Build examples
# run: arduino-cli compile --warnings all --fqbn rp2040:rp2040:${{ matrix.board }}:usbstack=tinyusb examples/arduino/device_info