-
Notifications
You must be signed in to change notification settings - Fork 27
/
build-devel.yml
57 lines (47 loc) · 1.32 KB
/
build-devel.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
name: Build Development Release
on:
push:
branches:
- devel
pull_request:
types: [ open, synchronize, edited, reopened, closed ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --prune --unshallow
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v2
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Build all environments
run: |
pio run
pio run --target buildfs
sh ./copy_bins.sh
- name: "Update development release"
uses: "marvinpinto/action-automatic-releases@latest"
# if: github.event.pull_request.merged == true
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest-devel"
prerelease: true
title: "Development Build"
files: |
LICENSE
bin/*.bin