generated from m5stack/M5Template-C-CPP
-
Notifications
You must be signed in to change notification settings - Fork 0
112 lines (100 loc) · 2.71 KB
/
PlatformioBuild.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: PlatformIOBuild
on:
push:
paths:
- '**.ino'
- '**.cpp'
- '**.hpp'
- '**.h'
- '**.c'
- '**PlatformioBuild.yml'
- '**platformio.ini'
pull_request:
paths:
- '**.ino'
- '**.cpp'
- '**.hpp'
- '**.h'
- '**.c'
- '**PlatformioBuild.yml'
- '**platformio.ini'
workflow_dispatch:
jobs:
build:
name: ${{ matrix.unit }}:${{ matrix.example }}:${{ matrix.board }}:${{ matrix.framework }}@${{ matrix.espressif32 }}
# name: ${{ matrix.unit }}_${{ matrix.example }}_${{ matrix.board }}_${{ matrix.framework }}_${{ matrix.espressif32 }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
#max-parallel: 1
matrix:
unit:
- UnitAmeter
- UnitVmeter
example:
- PlotToSerial
board:
- Core
- Core2
- CoreS3
- StampS3
- AtomS3
- Dial
- NanoC6
- StickCPlus
- Paper
- Fire
framework:
- Arduino
espressif32:
- latest
- '5_4_0'
- '4_4_0'
exclude:
- board: CoreS3
espressif32: '5_4_0'
- board: CoreS3
espressif32: '4_4_0'
- board: StampS3
espressif32: '5_4_0'
- board: StampS3
espressif32: '4_4_0'
- board: AtomS3
espressif32: '5_4_0'
- board: AtomS3
espressif32: '4_4_0'
- board: Dial
espressif32: '5_4_0'
- board: Dial
espressif32: '4_4_0'
- board: NanoC6
espressif32: '5_4_0'
- board: NanoC6
espressif32: '4_4_0'
- board: StickCPlus
espressif32: '5_4_0'
- board: StickCPlus
espressif32: '4_4_0'
- board: Paper
espressif32: '5_4_0'
- board: Paper
espressif32: '4_4_0'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Configure git for authentication (Until each repository is published)
run: |
git config --global url."https://${{ secrets.TOKEN_M5UNITUNIFIED }}@github.com/".insteadOf "https://github.com/"
- name: Build examples
uses: karniv00l/platformio-run-action@v1
with:
environments: ${{ matrix.unit }}_${{ matrix.example }}_${{ matrix.board }}_${{ matrix.framework }}_${{ matrix.espressif32 }}
#targets:
project-dir: "./"
project-conf: "./platformio.ini"
#jobs: 6
#silent: false
#verbose: truee
#disable-auto-clean: false