-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (31 loc) · 930 Bytes
/
build.yaml
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
name: Build
# TODO: Change to tags
on:
push:
branches: [ build ]
pull_request:
branches: [ build ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Set up Python
uses: actions/setup-python@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install platformio
# It is important to first install the libraries before compiling, since otherwise compilation might fail to find the just-installed libraries
- name: Install platformIO libraries
run: pio lib install
- name: Run PlatformIO
run: pio run -e pro-micro-prototype -e pro-micro-prototype-debug
- name: Archive firmware.hex
uses: actions/upload-artifact@v3
with:
name: muteme-arduino-firmware
path: .pio/build/*prototype*/*.hex
retention-days: 1