-
Notifications
You must be signed in to change notification settings - Fork 20
38 lines (37 loc) · 1.31 KB
/
build.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
name: PlatformIO build
on:
pull_request:
branches:
- master
- develop
push:
branches:
- develop
jobs:
main:
name: PlatformIO build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@master
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 -e miniV1 -e miniV2 -e miniV3 -e nanoV3 -e linkV1 -e boneV1 -e connectV1
- run: mkdir -p ./artifacts
- run: cp ./.pio/build/miniV1/firmware.bin ./artifacts/miniV1_firmware.bin
- run: cp ./.pio/build/miniV2/firmware.bin ./artifacts/miniV2_firmware.bin
- run: cp ./.pio/build/miniV3/firmware.bin ./artifacts/miniV3_firmware.bin
- run: cp ./.pio/build/nanoV3/firmware.bin ./artifacts/nanoV3_firmware.bin
- run: cp ./.pio/build/linkV1/firmware.bin ./artifacts/linkV1_firmware.bin
- run: cp ./.pio/build/boneV1/firmware.bin ./artifacts/boneV1_firmware.bin
- run: cp ./.pio/build/connectV1/firmware.bin ./artifacts/connectV1_firmware.bin
- uses: actions/upload-artifact@v1
with:
name: firmware_artifacts
path: ./artifacts