-
-
Notifications
You must be signed in to change notification settings - Fork 8
32 lines (29 loc) · 883 Bytes
/
pio.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
name: PlatformIO CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install PlatformIO Core
run: cd sensor; pip install --upgrade platformio
- uses: "finnp/create-file-action@master"
env:
FILE_NAME: "sensor/src/wifi_secrets.h"
FILE_BASE64: "I2RlZmluZSBTRUNSRVRfU1NJRCAidGVzdCIKI2RlZmluZSBTRUNSRVRfUFNLICJ0ZXN0Igo="
- name: Build PlatformIO Project
run: cd sensor; pio run
- uses: actions/upload-artifact@v2
with:
name: firmware.bin
path: |
sensor/.pio/build/*/firmware.bin