forked from zjwhitehead/eppg-controller
-
-
Notifications
You must be signed in to change notification settings - Fork 12
69 lines (68 loc) · 2.11 KB
/
config.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
name: Continuous Integration
on:
push:
pull_request:
types: [opened, reopened]
jobs:
cpplint:
name: CPP Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: 3.x
- run: pip install cpplint
- run: cpplint --linelength 140 --filter=-legal/copyright,-runtime/int,-build/include_subdir --recursive ./inc/ ./lib/ ./src/
pio-build:
name: PlatformIO Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: 3.x
- name: Install Platform IO
run: |
python -m pip install --upgrade pip
pip install -U platformio
- name: Build
run: platformio run
- name: Archive bin
uses: actions/upload-artifact@v3
with:
name: bins
path: .pio/build/**/firmware.bin
- name: Save uf2 for RP2040
uses: actions/upload-artifact@v3
with:
name: OpenPPG-CRP2040-SP140.uf2
path: .pio/build/OpenPPG-CRP2040-SP140/firmware.uf2
# Skip until M0 builds running by default
# generate-uf2:
# name: Save uf2 for ${{ matrix.device }}
# needs: pio-build
# runs-on: ubuntu-latest
# strategy:
# matrix:
# device: [OpenPPG-CM0-SP140]
# fail-fast: false
# steps:
# - name: Setup Python
# uses: actions/setup-python@v2
# - name: Checkout Microsoft uf2 repo
# uses: actions/checkout@v3
# with:
# repository: microsoft/uf2
# - name: Download built binary
# uses: actions/download-artifact@v2
# with:
# name: bins
# - name: Run uf2 conversion
# run: python3 utils/uf2conv.py ${{ matrix.device }}/firmware.bin -c -o ${{ matrix.device }}.uf2
# - uses: actions/upload-artifact@v3
# with:
# name: ${{ matrix.device }}.uf2
# path: ${{ matrix.device }}.uf2