-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (56 loc) · 1.53 KB
/
Copy pathci.yml
File metadata and controls
61 lines (56 loc) · 1.53 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
native-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.14"
- run: python -m pip install "platformio==6.1.18"
- run: pio test -e native
compile:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
board:
- fqbn: arduino:avr:uno
name: uno
- fqbn: esp32:esp32:esp32
name: esp32dev
- fqbn: rp2040:rp2040:rpipico
name: pico
platform: |
- name: rp2040:rp2040
source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
name: compile (${{ matrix.board.name }})
steps:
- uses: actions/checkout@v7
- uses: arduino/compile-sketches@v1
with:
fqbn: ${{ matrix.board.fqbn }}
platforms: ${{ matrix.board.platform || '' }}
sketch-paths: |
- examples
enable-warnings-report: true
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.14"
- run: python tools/validate_metadata.py
- run: python tools/build_release.py
- uses: actions/upload-artifact@v7
with:
name: ArduinoPatterns
path: dist/ArduinoPatterns-*.zip